RE: [PHP] register globals on

From: Date: Tue, 12 Sep 2006 14:48:27 +0000
Subject: RE: [PHP] register globals on
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241659@lists.php.net to get a copy of this message
At 12:55 PM +0100 9/12/06, Ford, Mike wrote:
Correction: $_GET - any parameters passed in the GET string. $_POST - any parameters passed in the body of a POST query. $_COOKIE - Any values sent by the browser as a cookie. $_REQUEST - The *three* above merged. I'm not sure whether $_REQUEST is affected by the variables_order configuration setting, but this could potentially affect both presence and precedence of the GPC variables in $_REQUEST. Cheers! Mike
As I remember it, there is a pecking order. The same <whatever> index in in all three GPC with different values will result in only one value provided by $_REQUEST(<whatever>). That's another reason why I avoid using $_REQUEST. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#241659) next »