Form Handler
| From: | Gil Merkle | Date: | Thu, 03 Oct 2002 20:18:39 +0000 |
| Subject: | Form Handler | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22207@lists.php.net to get a copy of this message | ||
I'm new at PHP and am trying to get a simple form handler to work. (I do
use the PEAR classes; but, haven't done much with them yet). I have the
following simple form (form1) and handler. The field 'FName' does not
display in the handler. What have I missed?
Form:
<HTML>
<HEAD>
<TITLE>Form 1 test</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" ACTION="form1handler.php">
First Field is:<br>
<P><INPUT TYPE="TEXT" NAME="FName" SIZE="20"></p>
<INPUT TYPE=submit>
<INPUT TYPE=reset>
</FORM>
</BODY>
</HTML>
Handler:
<HTML>
<HEAD>
<TITLE>Formhandler 1 test</TITLE>
</HEAD>
<BODY>
<?php
print("Hi <br>");
print("Field1 is: $FName");
?>
</BODY>
</HTML>