RE: [PHP] variables always overwriting session variables?!

From: Date: Fri, 10 Nov 2000 19:10:33 +0000
Subject: RE: [PHP] variables always overwriting session variables?!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24685@lists.php.net to get a copy of this message
See your php.ini file. You will find: variables_order = "GPCS" ; This directive describes the order in which PHP registers ; GET, POST, Cookie, Environment and Built-in variables (G, P, ; C, E & S respectively, often referred to as EGPCS or GPC). ; Registration is done from left to right, newer values override ; older values. Also see: register_globals = Off ; Whether or not to register the EGPCS variables as global ; variables. You may want to turn this off if you don't want ; to clutter your scripts' global scope with user data. This makes ; most sense when coupled with track_vars - in which case you can ; access all of the GPC variables through the $HTTP_*_VARS[], ; variables. -Rasmus On Fri, 10 Nov 2000, Boget, Chris wrote: > > The problem of the URL stored variables (GET) possible > > overwriting those in a form (POST), is commonly overlooked. > > I thought it was that > > COOKIE vars always overwrote > POST vars always overwrote > GET vars > of the same name > > ? > So GET variables have the highest priority? That would seem > like a serious hole... > > Chris > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#24685) next »