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:[EMAIL PROTECTED]]
> Sent: Tuesday, April 24, 2001 12:33 PM
> To: [EMAIL PROTECTED]
> 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
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to