Get Previous URL

  • Thread starter Thread starter Guest
  • Start date Start date
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!!!
 
Tim::.. said:
Can someone please tell me how I get the value of the previous pages
URL???

Have you tried the Request.UrlReferrer property?
 
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

Back
Top