PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
pinehead18
Forum Contributor
Posts: 329 Joined: Thu Jul 31, 2003 9:20 pm
Post
by pinehead18 » Thu Jul 15, 2004 5:17 pm
echo $_SERVER['referer'];
I did that trying to get the previous page that i was on. Is that not correct or something? Where in the manual can i find the details.
Thank you
Anthony
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Jul 15, 2004 5:25 pm
$_SERVER['HTTP_REFERER'] I believe..
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Thu Jul 15, 2004 5:29 pm
yeah its $_SERVER['HTTP_REFERER']
pinehead18
Forum Contributor
Posts: 329 Joined: Thu Jul 31, 2003 9:20 pm
Post
by pinehead18 » Thu Jul 15, 2004 5:44 pm
header("location: $_SERVER['HTTP_REFERER']");
ok i'm retarted right now, but this wont work. WTF ami doing wrong.
tim
DevNet Resident
Posts: 1165 Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio
Post
by tim » Thu Jul 15, 2004 5:46 pm
header("Location: {$_SERVER['HTTP_REFERER']}");
?
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Thu Jul 15, 2004 6:14 pm
If that does not work try:
echo "<meta http-equiv=refresh content='1; url=".$_SERVER['HTTP_REFERER']."'> ";