Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i get the URL of referring page?

Status
Not open for further replies.

miahmiah

Programmer
Oct 1, 2002
9
US
i need to get the url of the page that referred the web browser to the current page. (the page the user clicked from to get here)

i used to know how to do this in vbscript / asp - however, i have looked and looked in the php reference and cannot figure out / remember how to do this.

can anyone help? thanks!
 
you can get this info from $_SERVER["HTTP_REFERER"]

you can get all php's vars and info with a call to phpinfo() what we see depends mainly on what we're looking for.
--John Lubbock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top