RE: [PHP] Re: Tricky question - referrer from ousite, or from int ern?

From: Date: Tue, 27 Aug 2002 11:51:47 +0000
Subject: RE: [PHP] Re: Tricky question - referrer from ousite, or from int ern?
Groups: php.general 
Request: Send a blank email to php-general+get-114239@lists.php.net to get a copy of this message
> > However.. you think it might be not sure that this workes > for every browser? > > PUh... thats bad. Do u have examples for that? It workes > with IE on PC. Well, the HTTP 1.1 spec says it shouldn't be set when it's typed into the address line. That happens often enough that it can't be relied on. Try it: <HTML> <BODY> <?php echo "Referrer: {$_SERVER['HTTP_REFERER']}<br>"; //note misspeled HTTP_REFERER ?> <p> <a href="<?php echo $_SERVER['PHP_SELF'] ?>">Link to this page</a> </p> </body> </html>

« previous php.general (#114239) next »