I have one asp page to handling requests from different pages and use the following code to determine the requesting page.
if instr(Request.ServerVariables("HTTP_REFERER"),"transfer.asp")<>0 then
'calling from transfer.asp
else
'calling from other pages
end if
The code works fine on my computer. Some users reported error because although the calling page is transfer.asp, the code for "calling from other pages" executes. So I think probably Request.ServerVariables("HTTP_REFERER") does not work for them and returns empty string.
My guess is that some security settings in these users's network make this variable not being sent out in the HTTP request.
Can anyone help me?
Thanks in advance.
Seaport
if instr(Request.ServerVariables("HTTP_REFERER"),"transfer.asp")<>0 then
'calling from transfer.asp
else
'calling from other pages
end if
The code works fine on my computer. Some users reported error because although the calling page is transfer.asp, the code for "calling from other pages" executes. So I think probably Request.ServerVariables("HTTP_REFERER") does not work for them and returns empty string.
My guess is that some security settings in these users's network make this variable not being sent out in the HTTP request.
Can anyone help me?
Thanks in advance.
Seaport