RE: [PHP] Quickie
| From: | John W. Holmes | Date: | Mon, 30 Sep 2002 16:28:40 +0000 |
| Subject: | RE: [PHP] Quickie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118225@lists.php.net to get a copy of this message | ||
Is register globals on or off?
---John Holmes...
> -----Original Message-----
> From: Daniel Alsén [mailto:php@mindbash.se]
> 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