I have a website in two languages, English and French.
I have a startpage for each language:
../en/index.htm
and
../fr/index.htm
the index.htm has two frames:
frame1= menu.php
frame2= main.php
In the main.php page, I want to detect in which language the surfer is browsing. I wanted to do this via the server variable script_name , and then filter out the language via string functions.
But when I show the script_name in main.php, I get ../main.php as a result, and not the intended ../en/index.htm or ../fr/index.htm.
How can I find the language in the main.php page???
Thanks, snookie.