Re: $_SERVER[HTTP_REFERER]

From: Date: Wed, 07 Jul 2004 22:01:17 +0000
Subject: Re: $_SERVER[HTTP_REFERER]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189907@lists.php.net to get a copy of this message
On Wed, 7 Jul 2004 22:43:11 +0100, Shaun <shaunthornburgh@hotmail.com> wrote: > Hi, > > Can someone tell me why > > echo '$_SERVER[HTTP_REFERER] = '.$_SERVER[HTTP_REFERER].'<br>'; > > Produces > > $_SERVER[HTTP_REFERER] = > > Is this a problem with my server configuration, if so is there a SERVER > variable I can use instead? > If you didn't get to the page by clicking on a link, then you won't have a referer. Also, you should use quotes around array keys: $_SERVER['HTTP_REFERER'] -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.general (#189907) next »