Re: HTTP_REFERER

From: Date: Wed, 21 Nov 2001 16:23:50 +0000
Subject: Re: HTTP_REFERER
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75407@lists.php.net to get a copy of this message
> Can anyone tell me under what circumstances this is set? When the browser feels like setting it :-( It's entirely up to the browser to send that information. Some browsers go so far as to send it when you type a new URL into the location bar. Others only on the A tag. This makes HTTP_REFERER rather unreliable less useful than it could be. You can send it yourself in your FORMs using: <INPUT TYPE=HIDDEN NAME=REFERER VALUE=<?php echo $PHP_SELF;?>> Don't use HTTP_REFERER, since PHP will probably over-write your data with the browser's. Actually, you could and should be converting to using $_POST and $_GET etc, so that would be moot. -- Like music? http://l-i-e.com/artists.htm

« previous php.general (#75407) next »