Re: Finding out how a variable was registered

From: Date: Wed, 05 Jun 2002 20:30:13 +0000
Subject: Re: Finding out how a variable was registered
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100786@lists.php.net to get a copy of this message
Use $HTTP_POST_VARS['var'] instead of $var and you will know it comes from post. Or $HTTP_GET_VARS['var'] if you want it from GET (the URL). Or use the superglobals like someone else mentioned if you have the latest PHP version. ---John Holmes... ----- Original Message ----- From: "Joe Pemberton" <joe@joepnet.com> To: "php list" <php-general@lists.php.net> Sent: Wednesday, June 05, 2002 2:45 PM Subject: [PHP] Finding out how a variable was registered Is there a function call to figure out how a variable was registered? I am writing a page that handles a form and I need to know whether or not a variable was created using the GET or POST method (I don't want the user to be able to to 'foo.php?var=value' and mess with the results) - - Joe joe@joepnet.com

« previous php.general (#100786) next »