I am not able to pass variables from the form to the php script.
The following does work:
<title>Email the Webmaster</title>
<script src="../../scripts/styles1.js"></script>
<script src="../../scripts/mail.js"></script>
<script src="../../_scripts/nope.js"></script>
<form name="form" method="post" action="test_smtp2.php">
<p class="ictus">To: <input type="text" value="http://" name="firstname"></p>
<p>Message: <textarea name="comment"></textarea></p>
<textarea name="comment" cols="24" rows="6" wrap="virtual"></textarea>
<input type="submit" name="Submit" value="Submit">
</form>
However, the following does not work. any idea why?
<head>
<title>icTus - GO AGAINST THE FLOW</title>
<!----------------------------------------------------------------------------------------->
<!-----------This site is designed and maintained by icTus GO AGAINST THE FLOW------------->
<!----------------------------------------------------------------------------------------->
<script src="../../scripts/styles1.js"></script>
<script src="../../scripts/mail.js"></script>
<script src="../../scripts/nope.js"></script>
<!----------------------------------------------------------------------------------------->
<!-- welcome -->
<!----------------------------------------------------------------------------------------->
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<!----------------------------------------------------------------------------------------->
<!-- -->
<!----------------------------------------------------------------------------------------->
<form name="CONTACT" action="test_smtp2.php" method="post" enctype="text/plain" onSubmit="return testB(document.CONTACT)">
<input type="hidden" value="icTus Contact Form" name="title">
<table border="0" cellspacing="0" cellpadding="0" width="528" height="253">
<tr valign="top">
<td colspan="2"><img src="../../pics/05_c_title.gif" width="170" height="37"></td>
</tr>
<tr valign="top">
<td width="5"><img src="../../pics/ffffff.gif" width="4" height="39" border="0"></td>
<td valign="top" width="524" class="ictus">fill in the corresponding
information and i will get back to you as soon as possible! <br>in any case, please
do enter in the fields marked *.</td>
</tr>
<tr valign="top">
<td width="5"><img src="../../pics/ffffff.gif" width="4" height="177" border="0"></td>
<td valign="top" align="left" width="524">
<table border="0" width="524" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" bgcolor="#CCCCCC" width="278">
<table border="0" cellpadding="0" cellspacing="0" width="278">
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="7" border="0"></td>
<td></td>
<td><img src="../../pics/ffffff.gif" width="12" height="7" border="0"></td>
<td></td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="8" height="12" border="0"></td>
<td><img src="../../pics/05_c_name.gif" width="32" height="10" border="0"></td>
<td></td>
<td><img src="../../pics/05_c_age.gif" width="30" height="10" border="0"></td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="8" height="27" border="0"></td>
<td valign="top">
<input type="text" name="name" size="22">
</td>
<td></td>
<td valign="top">
<input type="text" name="age" size="22">
</td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="12" border="0"></td>
<td><img src="../../pics/05_c_surname.gif" width="52" height="10" border="0"></td>
<td></td>
<td><img src="../../pics/05_c_rating.gif" width="100" height="10" border="0"></td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="8" height="27" border="0"></td>
<td valign="top">
<input type="text" name="surname" size="22">
</td>
<td></td>
<td valign="top">
<input type="text" name="rating" size="22" value="">
</td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="12" border="0"></td>
<td><img src="../../pics/05_c_nationality.gif" width="70" height="10" border="0"></td>
<td></td>
<td><img src="../../pics/05_c_email.gif" width="34" height="10" border="0"></td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="27" border="0"></td>
<td valign="top">
<input type="text" name="nationality" size="22">
</td>
<td></td>
<td valign="top">
<input type="text" name="email" size="22" value="">
</td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="12" border="0"></td>
<td><img src="../../pics/05_c_country.gif" width="64" height="10" border="0"></td>
<td></td>
<td><img src="../../pics/05_c_url.gif" width="19" height="10" border="0"></td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="27" border="0"></td>
<td valign="top">
<input type="text" name="country" size="22">
</td>
<td></td>
<td valign="top">
<input type="text" value="http://" name="URL" size="22">
</td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="14" border="0"></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
<td bgcolor="#CCCCCC" valign="top" width="219">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><img src="../../pics/ffffff.gif" width="12" height="7" border="0"></td>
</tr>
<tr>
<td><img src="../../pics/ffffff.gif" width="12" height="12" border="0"></td>
<td><img src="../../pics/05_c_comment.gif" width="60" height="10" border="0"></td>
</tr>
<tr>
<td> <img src="../../pics/ffffff.gif" width="12" height="112" border="0"></td>
<td valign="top">
<textarea name="comment" cols="24" rows="6" wrap="virtual"></textarea>
</td>
</tr>
<tr>
<td></td>
<td valign="bottom">
<input type="image" border="0" src="../../pics/send_grey.gif" width="52" height="27">
</td>
</tr>
</table>
</td>
<td valign="bottom" align="right" bgcolor="#CCCCCC" width="35"><img src="../../_pics/05_c_corner.gif" width="35" height="45" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</BODY>