Quickie
| From: | Daniel Alsén | Date: | Mon, 30 Sep 2002 16:19:20 +0000 |
| Subject: | Quickie | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118224@lists.php.net to get a copy of this message | ||
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