Hello,
I'm new to PHP and have limited knowledge other than echoing, setting/defining constants and simple mathematics. I am developing a simple website that is to use the English and Vietnamese languages. Don't worry, my wife is doing all the Vietnamese translating.
On another website I developed I used two images of flags as the language buttons at the top of the screen. This simply redirected you to either an EN or VN directory of the website. The problem is the website had to be created twice in these two directories.
This time I have defined to PHP language files. Each file has the same variables/constants defined using "define" but with different values, either English or Vietnamese. All the web pages echo the corresponding constant to display the text/value. Each web page uses the "include" command at the top of the web page.
What I want are push buttons at the top of the screen that defines what a language variable for each web page to use. The push buttons are simple English or Vietnamese flags that I use CSS to create. I feel I'm so close, but I just can't figure out how to reassign a variable and cause the screen to refresh with the new language.
Any help will be greatly appreciated.
Thanks