On Wed, 7 Jul 2004 22:43:11 +0100, Shaun <[EMAIL PROTECTED]> 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-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php