I have problem when trying to process a html from with php. php is running fine on apache server. i could get results when assigning values to the variables and print it. the problem is when trying to send the values from a html form. the code is as follows.
<HTML>
<TITLE>HTML Form</TITLE>
<BODY>
<FORM ACTION="handleform.php" METHOD=GET>
FirstName<INPUT TYPE=TEXT NAME="firstname"><BR>
<INPUT TYPE=SUBMIT NAME="SUBMIT" value="Submit">
</FORM>
</BODY>
<HTML>
the php file is as follows.
<HTML>
<TITLE>
Form Results
</TITLE>
<BODY>
<?php
print "The name you have entered is $firstname<br>";
?>
</BODY>
</HTML>
the url shows http://localhost/handleform.php?f=chris&SUBMIT=Submit
the out put is just
The name you have entered is
can smone help with this. I'm very new to PHP
|