RE: [PHP] Precedence question- cookie value over form value?
| From: | Johnson, Kirk | Date: | Tue, 24 Apr 2001 15:40:29 +0000 |
| Subject: | RE: [PHP] Precedence question- cookie value over form value? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50110@lists.php.net to get a copy of this message | ||
Depends :)
*If* the variables_order directive in php.ini is set to the default EGPCS
(Env,Get,Post,Cookie,Server), *and* register_globals in php.ini is on, *and*
there is not a session variable with the same name that has already been
assigned a value, *then* the value in the cookie will end up in the global
variable of the same name. The cookie value will also be in
$HTTP_COOKIE_VARS[], and the post value will also be in $HTTP_POST_VARS[].
Else, otherwise.
Kirk
> -----Original Message-----
> From: Dexter [mailto:dcoelho@weginc.com]
> Sent: Tuesday, April 24, 2001 12:33 PM
> To: php-general@lists.php.net
> Subject: [PHP] Precedence question- cookie value over form value?
>
>
> Hi PHPers,
>
> If I have a script that checks to see if a variaable is
> defined. The variaable is from a form and is sent to the
> script. There is also a cookie that may be set with a name as
> the same name as from the form. When the script checks and
> assuming the cookie is set and a value sent from the form ,
> which value does the variable take on?
>
> Thanks
>
> Dexter
>
>