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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to find the previous page....

Status
Not open for further replies.

wazilian1

Programmer
Nov 8, 2002
38
US
what are the different ways of finding the previous page in php? meaning is it in a register global, another php function that i'm not aware of? thanx in advance.

wazilian
King of Wazil
 
[tt]$_SERVER['HTTP_REFERER'][/tt] (or [tt]$HTTP_SERVER_VARS['HTTP_REFERER'][/tt] if you have an older version of PHP) may or may not contain the URL to the previous page, depending on browser settings and how the users got to the page.

//Daniel
 
think you can use javascript easy


<a href=&quot;javascript:back()&quot;> easy as pie

in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
easy enough, thanx a bunch guys.

wazilian
King of Wazil
 
arg well i guess it doesnt *find* it.. it just takes you to it >.<

in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top