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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
gevo12321 Posted September 5, 2008 Author Share Posted September 5, 2008 bump Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.