Request.ServerVariables("HTTP_REFERER")

W

Wayne Wengert

The subject code used to give me a string containing the URL of the calling
page. Now I get nothing?

How can I get the URL of the calling page?
 
A

Adrienne

The subject code used to give me a string containing the URL of the
calling page. Now I get nothing?

How can I get the URL of the calling page?

Depends on how you get there. If someone types in www.example.com into
their title bar, there will be no referer. If a new window opens from <a
href="page.htm" target="_blank" there will be no referer (one of the
reasons the target attribute was not included in XHTML Strict as it breaks
the Back button). There are some browsers that block it, etc.
 
W

Wayne Wengert

I am using a <a href="tagetpage.asp"> type of link to get there. No target
involved. I know this sounds familiar but it really did work in the past.

BTW, thanks for those pointers about how it works. I did not realize those
exceptions existed.

Wayne
 
W

Wayne Wengert

I just learned that this apparently works for some browsers and not others.
My ISP tried the test at their site and it works. It fails for me. I use IE6
with all the latest patches?

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top