tawevolution Posted November 27, 2006 Share Posted November 27, 2006 Hi,I have 3 sections to a website Im developing. English, French and German. What I want to be able to do is have the url as somethign like this: mysite.com/index.php?lang=en or lang=de or lang=fr (depending on the language). This can be selected from a drop down box (so the values will be en/fr/de). Then when they select a language, it only shows that language's content. How would I go about doing this? Someone has tried to explain before .... but I actually fell asleep (he was a auzzie, n it was like 2am - meh).Please help, I can try and explain more if it will help xDEvo Link to comment https://forums.phpfreaks.com/topic/28661-wwwegcomindexphplangen-with-cookies-solved/ Share on other sites More sharing options...
trq Posted November 27, 2006 Share Posted November 27, 2006 [code=php:0]if (isset($_GET['lang'])) { $lang = $_GET['lang'];}[/code] Link to comment https://forums.phpfreaks.com/topic/28661-wwwegcomindexphplangen-with-cookies-solved/#findComment-131155 Share on other sites More sharing options...
tawevolution Posted November 27, 2006 Author Share Posted November 27, 2006 actually nevermind, i just realise what i have done ... i have been a noob ..... NoOOOOOlol, sry admins for waisting this space, i have been on here before, and forgot that this q is answered in the pinned topic XDsorry, Nooby Evo out.... Link to comment https://forums.phpfreaks.com/topic/28661-wwwegcomindexphplangen-with-cookies-solved/#findComment-131156 Share on other sites More sharing options...
tawevolution Posted November 28, 2006 Author Share Posted November 28, 2006 [quote author=thorpe link=topic=116503.msg474680#msg474680 date=1164662635][code=php:0]if (isset($_GET['lang'])) { $lang = $_GET['lang'];}[/code][/quote]k, thnx bud! Link to comment https://forums.phpfreaks.com/topic/28661-wwwegcomindexphplangen-with-cookies-solved/#findComment-131585 Share on other sites More sharing options...
tawevolution Posted November 28, 2006 Author Share Posted November 28, 2006 another question on this topic .... i have a splash page, which sets a cookie for each language (say the cookies name is language_121 and the value is either en/de/fr). how do i do the ?lang=de thing. so the cookie puts it there instead of a form? (e.g. several links on the page, and i want all of them to end with ?lang=##, so can a cookie do that (so i dont haveto have 3 copies of the same page in diff langs? Link to comment https://forums.phpfreaks.com/topic/28661-wwwegcomindexphplangen-with-cookies-solved/#findComment-131623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.