gevo12321 Posted September 5, 2008 Share Posted September 5, 2008 ok so i have many pages in the website and i also have the exact same pages in a different language. i want to be able to switch between the 2 different language pages by clicking a button. any suggestions on how i should do it? other than manually puting in the link Link to comment https://forums.phpfreaks.com/topic/122825-solved-switch-between-2-types-of-pages/ Share on other sites More sharing options...
ranjuvs Posted September 5, 2008 Share Posted September 5, 2008 Use sessions. Keep a session variable to store the language. Keep different folders for each language. Like for english say folder named 'en' and for spanish 'es'. Keep the file names same and depending on the language session variable change the folder. Regards Ranju Link to comment https://forums.phpfreaks.com/topic/122825-solved-switch-between-2-types-of-pages/#findComment-634289 Share on other sites More sharing options...
gevo12321 Posted September 5, 2008 Author Share Posted September 5, 2008 hmm any other way? cuz im really new to this and have no experience with sessions. Link to comment https://forums.phpfreaks.com/topic/122825-solved-switch-between-2-types-of-pages/#findComment-634294 Share on other sites More sharing options...
gevo12321 Posted September 5, 2008 Author Share Posted September 5, 2008 bump Link to comment https://forums.phpfreaks.com/topic/122825-solved-switch-between-2-types-of-pages/#findComment-634723 Share on other sites More sharing options...
discomatt Posted September 5, 2008 Share Posted September 5, 2008 Sessions are your best way if the pages are already built. It's worth it to learn them, and they are quite simple. Check the manual. Link to comment https://forums.phpfreaks.com/topic/122825-solved-switch-between-2-types-of-pages/#findComment-634737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.