Is register globals on or off?

---John Holmes...

> -----Original Message-----
> From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 12:19 PM
> To: php general
> Subject: [PHP] Quickie
> 
> Guys,
> 
> i've been away for a while - enjoying a much needed vacation in lovely
> Hungary and expanding my company. Now im back to bother you with easy
> questions ;)
> 
> I am doing a small site multilingual and will display different
content
> depending on what language the user choses. When the user comes to the
> site
> i want the default language to be swedish and is setting it in a
session:
> 
> session_start();
> session_register("lang");
> if (!isset($lang)) { $lang = 'se'; }
> 
> However - i can´t change the value for $lang after that. It gets set
to
> 'se'
> every time the page loads. Shouldn't row 3 only be executed if $lang
isn't
> already assigned a value?
> 
> Regards
> - D
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to