I have a super simple mailform that is being a huge headache. I just installed php4 and apache1 on Win2K. When hit the submit button I get this error:
Parse error: parse error, unexpected $ in c:\program files\apache group\apache\htdocs\chap-3\handleform.php on line 13
the only think on that line is my closing HTML tag. I get this error no matter what line it is on (yes, the line number in the error changes).
Have I configured something wrong maybe?
here is the code to my form:
<!--
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="handleform.php">
<p><font face="Century Gothic">First Name
<input type="text" name="firstname" size="50" maxlength="50">
<br>
Last Name
<input type="text" name="lastname" size="50" maxlength="50">
<br>
E-Mail Address
<input type="text" name="emailaddress" size="50" maxlength="50">
</font></p>
<p><font face="Century Gothic">Comments<br>
<textarea name="comments" rows=10 cols=100></textarea>
</font></p>
<p> <font face="Century Gothic">
<input type="submit" name="Submit" value="Submit">
</font><br>
</p>
</form>
</body>
-->
and here is the code for the form handler:
<!--
<body bgcolor="#FFFFFF" text="#000000">
<?php
/ this page recieves
the info from form-3.2/
print "Your first name is $firstname.<BR>\n";
print "Your last name is $lastname.<BR>\n";
print "Your e-mail address is $emailaddress.<BR>\n";
print "This is what you had to say:<BR>\n
$comments<BR>\n;
?>
</body>
-->
I hope that commented out ok.
Anyhelp will be appreciated.