Re: value passing from html form to php variable.

From: Date: Sat, 01 Jun 2002 15:57:00 +0000
Subject: Re: value passing from html form to php variable.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100230@lists.php.net to get a copy of this message
On Saturday, June 1, 2002 at 4:51:20 PM, you wrote: > I got a simple form addform.html and add.php look like the following. > But everytime I got empty value from firstname and lastname. It seems like > the input value in the html page was not passed on to the php variable > $firstname in add.php. Anyone give me a hand on this naive question? You probably have register_globals turned Off in your php.ini file. If you do then you can either turn it on or use the recommended method of accessing POSTed variable: $_POST['firstname']. -- Stuart

« previous php.general (#100230) next »