RE: [PHP] form problem

From: Date: Thu, 24 Oct 2002 17:15:24 +0000
Subject: RE: [PHP] form problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121314@lists.php.net to get a copy of this message
[snip] ::html file:: <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0"> <form name="form1" method="post" action="adduser_p.php"> <input type="text" name="firstname"> <input type="submit" name="Submit" value="Submit"> </form> </body> </html> ::php file:: <?php print $firstname; ?> [/snip] You didn't say which version of PHP, but my bet it is one with register_globals turnerd off. Try <?php print($_POST["firstname"]); ?> HTH! Jay

« previous php.general (#121314) next »