how to send referer while redirecting with header()?
Posted: Thu Nov 04, 2004 5:06 pm
does anyone know how to send referer while redirecting with header()?
for example I have 2 pages,
redir.php has
and receive.php has
receive.php doesn't show anything for the referer, but I want it to have redir.php as the referer
I've tried putting this infront of the header() but it doesn't do anything
header("Referer: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html");
thanks for any help
Weirdan | Help us, help you. Please use
for example I have 2 pages,
redir.php has
Code: Select all
header("Location: http://blah.com/receive.php");Code: Select all
echo $HTTP_SERVER_VARSї'HTTP_REFERER'];I've tried putting this infront of the header() but it doesn't do anything
header("Referer: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html");
thanks for any help
Weirdan | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]