Re: referrer variable?

From: Date: Tue, 29 Aug 2000 21:43:53 +0000
Subject: Re: referrer variable?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-14246@lists.php.net to get a copy of this message
pass it as a variable to the new page assuming it is going to a PHP page -- Chris McKeever cgmckeever@norphans.com 773.443.7932 - direct line Norphans.Com, A Division of The Norphan Company WWW.Norphans.com 877-NORPHAN "Sascha Schumann" <sascha@schumann.cx> wrote in message news:Pine.LNX.4.21.0008292259480.11277-100000@eco.foo... > On Tue, 29 Aug 2000 venome@gmx.net wrote: > > > is there a possibility for a script, similar to $PHP_SELF to get its own > > url, to get the url that requested the page? i.e. if a send a "Location: > > [page2]" header from page1, how can [page2] determine from where it was > > requested? > > A HTTP Redirect does not cause a change in the Referrer. > > Otherwise, you can use $HTTP_REFERER or > $HTTP_SERVER_VARS["HTTP_REFERER"]. > > - Sascha > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#14246) next »