Forum Moderators: open
Every page has a metatag that has the absolute link to the other language page (ie. <meta name="xxxx.translation content="http://www.somesite.com/blah/file.shtml">).
My employers want the link for the other language button to call an asp script (lang.asp), which would then redirect to the other page. (Okay, they really just told me: "Write an asp script to handle the language switching.")
The way I would like to handle this is to have the script open the page (through the file system) in which the script was called, parse through it until it finds the correct metatag, capture the URL, and then redirect to this page.
Is this possible? Can I determine what file called the script?
Does anyone have any better ideas?
Thanks
<% Request.ServerVariables("SCRIPT_NAME") %> = /forum47/290.htm
<% Request.ServerVariables("SERVER_NAME") %> = www.webmasterworld.com
Here is a good page on server variables.
[aspfree.com...]