note 26136 rejected from faq by betz

From: Date: Sat, 19 Oct 2002 11:11:57 +0000
Subject: note 26136 rejected from faq by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38291@lists.php.net to get a copy of this message
How can I use the html variable in PHP? I did it in the following way: <html> <head> <title>Form</title> </head> <body> <form name="registrationMain" method="post" action="confirm.php" enctype="multipart/form-data"> <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#ffffff"> <tr> <td width="30%"> <B> First Name (Required)</B></td> <td colspan="2"> <input type="text" name="FirstName" size="25" maxlength="50"> </td> </tr> <?php print $FirstName; ?> </table> </form> </body> </html> But I got the error message as follow: Notice: Undefined variable: FirstName in c:\inetpub\wwwroot\error.php on line 16

« previous php.notes (#38291) next »