Re: [PHP] How can I read the value of an existing cookie?

2001-08-25 Thread Pere

Thanks, Mike, for your help.
Best regards,
Pere

"Mike Cullerton" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> on 8/25/01 6:20 AM, Pere at [EMAIL PROTECTED] wrote:
>
> > I am setting up a cookie stating the language the user wishes to have
the
> > site written with. No problem up to here.
> >
> > Next time the user goes back to the site I want to read the cookie and,
> > provided it exists, set up the site with the requested language.
> >
> > How can I retrieve the existing value of the cookie? (My cookie looks
> > "language","spanish or english or german","time()+1 year").
>
> $HTTP_COOKIE_VARS["language"]
>
> if register_globals is on, you should be able to use $language
>
> mike
>
> > Thank you for your support.
> >
> > Pere
> >
> >
>
>
>  -- mike cullerton
>
>



-- 
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]




Re: [PHP] How can I read the value of an existing cookie?

2001-08-25 Thread mike cullerton

on 8/25/01 6:20 AM, Pere at [EMAIL PROTECTED] wrote:

> I am setting up a cookie stating the language the user wishes to have the
> site written with. No problem up to here.
> 
> Next time the user goes back to the site I want to read the cookie and,
> provided it exists, set up the site with the requested language.
> 
> How can I retrieve the existing value of the cookie? (My cookie looks
> "language","spanish or english or german","time()+1 year").

$HTTP_COOKIE_VARS["language"]

if register_globals is on, you should be able to use $language

mike

> Thank you for your support.
> 
> Pere
> 
> 


 -- mike cullerton



-- 
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]




[PHP] How can I read the value of an existing cookie?

2001-08-25 Thread Pere

I am new to PHP (probably the question itself shows it...).

I am setting up a cookie stating the language the user wishes to have the
site written with. No problem up to here.

Next time the user goes back to the site I want to read the cookie and,
provided it exists, set up the site with the requested language.

How can I retrieve the existing value of the cookie? (My cookie looks
"language","spanish or english or german","time()+1 year").

Thank you for your support.

Pere



-- 
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]