Get Previous URL

G

Guest

Can someone please tell me how I get the value of the previous pages URL???

I want to write an IF statement something like this...

IF PREVIOUS URL = "http:www.somepage.com" THEN
' Do something
ELSE
' Do something else
END IF

Thanks for any advice!!!
 
S

Shawn

Request.ServerVariables("HTTP_REFERER")

Definition: Returns a string containing the URL of the page that referred
the request to the current page using an <a> tag. If the page is redirected,
HTTP_REFERER is empty

Shawn
 

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,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top