Session expiration Your session is going to expireClick here to extend


Small project <800

Posted on

11/14/12 4:38 AM



This project has expired

Why don't you register anyway? We are sure that you will find many similar projects out of the thousands waiting for you!

Post similar project now


I have a multi-language website and can change language via PHP on each page of it. Default language is english. The problem now is, when I change to german, or perhaps other languages, it works perfect at the current page, but when I go to next page, language changed again to default english. What I want now is a solution, where the chosen language stays while surfing as long as I change to another language again. Here the code I use at the moment on each page. Works fine, except my needs. <?php $lang = $_GET["lang"]; if($lang == "")  {   $lang = "en";    } include("lang_".$lang.".php"); ?> In this little file I can add as much languages I need. <div id="flag_de"> <a href="?lang=de">Deutsch</a></div> <div id="flag_en"> <a href="?lang=en">English</a></div>