Hi there I want to store the language choosen by the user in $_session['lang']
This exactually works fine but i now i have a form in one of my pages, this form doesn't posts/gets the language with the submit, which results that the $_session['lang'] is overwritten. Can anyone help me out here?
Everypage has this code included maybe im doing it all wrong?
Code PHP:if(!isset($_GET['lang']) && !isset($_SESSION['lang'])){ $Currentlan=GetMainLanguage(); session_start(); $_SESSION['lang']=$Currentlan; } if(isset($_GET['lang'])){ $Currentlan=$_GET['lang']; session_start(); $_SESSION['lang']=$Currentlan; }





Bookmarks