Your better off not hardcoding your language parameters on your links
Try by taking a more abstract approach
so instead of doing <a href=????.php?lang=en>????</a>
try
<a href='???.php?lang=$_GET['lang']'>???</a>
Then whenever the $lang var is set it will automatically be added to your links so that it is the correct one
HTH
GM
Originally posted by hykc
i have a website which has 3 languages version
i have a page called "index.php" which contains serveral links
myphp.php?id=1&name=xxx&lang=en
myphp.php?id=2&name=xyz&lang=en
.....
.and so on
when i click on myphp.php?id=1&name=xxx&lang=en, it brings me to that page and that page has a chinese button and i want that chinese button to have that link as well (and i str_replace the "en" to "tc" for chinese)
how can i make this
thx