Answer the question
In order to leave comments, you need to log in
When changing the language, get parameters are lost, how to fix it?
Switch structure via get
<div class="lang">Язык:<a href="?lang=en">English</a>|<a href="?lang=ru">Русский</div>
$result = mysql_query("SELECT * FROM stores_".$_SESSION['lang']);
block is substituted. $_SESSION['lang'].
about.php?lang=en
that switching goes normally. /shop.php?type=stores&id=25&lang=en
, then when you click on the language switch, there is a link shop.php?lang=en без type=stores&id=25
that is not correct and leads to an error on the page. echo substr($_SERVER['REQUEST_URI'], 0, -8);
to find out the url and cut off the excess, since I wrote lang=en or lang=ru 2 times in the url, but this leads to problems on pages like about.php?lang=en (cuts off the excess). Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question