Im having a seriously hard time with something that i know is simple. I have a basic form where you enter your name and then hit the submit button. The $firstname is then passed to a handler script. I have stripped this down to the most basic thing i could and I still get a parse error.
Notice: Undefined variable: firstname in c:\program files\apache group\apache\htdocs\chap-3\handleform.php on line 4
Your first name is .
here is the code for my form:
<form action="handleform.php" method="post" >
First Name <input type="text" name="firstname" size="50" maxlength="50">
<br>
<br>
<input type="submit" name="Submit" value="Submit">
</form>
here is the code for the handler script:
<?php
print "Your first name is $firstname.\n";
?>
this is a new install on a win2k box runing apache 1 and php4
thanks for any ideas tips or help