General information
Category:
Internet applications
>>>>How do you check the value of the history file. We want to know the page we came from without resorting to storing that in a session variable.
>>>
>>>Try this from server script:
>>>
>>>Request.ServerVariables("Http_Referer")
>>>
>>>This returns the string of the url of the original request.
>>
>>We tried that, but the variable is not coming across. Is there some additional settings to get this to work?
>
>Double check your spelling of Http_Referer.
Ok. I got it to work. I did a simple test with a Pag1.asp and a Page2.asp.
The asp has a button which when clicked issues a
document.location.href = "page2.asp"
In page2.asp I do
response.write( request.ServerVariables( "Http_Referer" )
but it gives only the directory. "http://mesweb/scripts/
I need to know which page called the 2nd page. Is this possible?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only