note 26136 added to faq

From: Date: Sat, 19 Oct 2002 07:36:59 +0000
Subject: note 26136 added to faq
Groups: php.notes 
Request: Send a blank email to php-notes+get-38286@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 -- http://www.php.net/manual/en/faq.php http://master.php.net/manage/user-notes.php?action=edit+26136 http://master.php.net/manage/user-notes.php?action=delete+26136 http://master.php.net/manage/user-notes.php?action=reject+26136

« previous php.notes (#38286) next »