RE: [PHP] Problem about Reading input from a Form

From: Date: Mon, 25 Feb 2002 15:53:16 +0000
Subject: RE: [PHP] Problem about Reading input from a Form
Groups: php.general 
Request: Send a blank email to php-general+get-86101@lists.php.net to get a copy of this message
> -----Original Message----- > From: Kostas Karadamoglou [mailto:kknt2000@hotmail.com] > Sent: 25 February 2002 14:35 > To: M.Ford@lmu.ac.uk; php-general@lists.php.net > Subject: [PHP] Problem about Reading input from a Form > > > I set the register_globals On in the php.ini file but when i > do php.info it > shows that is off. Did you restart PHP after changing php.ini? > About the better way, How i can manipulate > this variables, > can you give me an exable. Simple: instead of $user and $address, use: * in PHP 4.0: $HTTP_POST_VARS['user'] and $HTTP_POST_VARS['address'] * in PHP 4.1: $_POST['user'] and $_POST['address'] For more information, refer to http://www.php.net/manual/en/language.variables.external.php (which doesn't actually mention the $_* variables), and http://www.php.net/manual/en/language.variables.predefined.php (scroll waaay down until you reach the heading "PHP variables"). Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#86101) next »