Forum Moderators: coopster
?submenu=whateverwasclikedis attached to the current adress.
index.php?lang=enand if there is already a variable (for example some?submenu) it should write:
index.php?submenu=whateverwasclicked&lang=ensince
$_SERVER['PHP_SELF']doesn't respect the get variables, i can't use that...
so do you hard code the get var into the <a> or do you do something else.
If you are looking for a default setting you could do
if (!isset($_GET['lang'])) $language = 'en';
then links can be
<a href="index.php?submenu=whateverwasclicked&lang=<? echo $language;?>">
is that what you mean?
http://mydomain.com/dir/index.php
http://mydomain.com/dir/index.php?id=1then
&lang=enshould be added...