Your session variable overwrites the get variable, use $newlang session_start(); session_register("lang"); if(isset($newlang) $lang=$newlang; // check here for valid values if (!isset($lang)) { $lang = 'se'; }
Daniel Alsén wrote: >John W. Holmes propably said: > > > >>Is register globals on or off? >> >> > >On. > >Now - without doing anything - i managed to change the value of $lang to >'en' with a link (pagesname.php?lang=en). But i can't change it back with >?lang=se. Should i get someting to eat to get my brain working? > >- D > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php