> John W. Holmes propably said:
> > Is register globals on or off?
> On.
> Now - without doing anything - i managed to change the value of $lang
> 'en' with a link (pagesname.php?lang=en). But i can't change it back
> ?lang=se. Should i get someting to eat to get my brain working?

Here's the problem with register globals. If you pass $lang in the url,
it's a get variable. But when you call session_start, $lang is being
overwritten with the $lang from the session. So you're not changing it.
Try passing a $change_to_lang=en, and then 

If(isset($change_to_lang)) { $lang = $change_to_lang; }

Hope that helps.

---John Holmes...

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

Reply via email to