View Single Post
  #4 (permalink)  
Old September 30th, 2004, 09:15 AM
netcrawler netcrawler is offline
Authorized User
Join Date: Sep 2004
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts

here is one easy way to do the language switch thats the one I use and it works like a charm:

Create an ASP page and name it language.asp. Store it in the root of your Web site. Include the following code before the HTML tag on the page.

sString = Request.ServerVariables("HTTP_REFERER")
sFullFileName = Mid (sString, Instr (sString, ".asp"))
iLen = Instr (sString, ".asp")-2
sFileName = Mid (sString, 1, iLen)
sExtension = Mid (sString, iLen+1, 1)
if (sExtension = "e") Then
sExtension = "f"
sExtension = "e"
end if
sNewFileName= sFileName & sExtension & sFullFileName
Response.Redirect sNewFileName

Reply With Quote