In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Saci) wrote:
> I tried this simple code > > <html> > <body> > Page refered by > <?php > echo $HTTP_REFERER.'<br>'; > echo $_SERVER['HTTP_REFERER'].'<br>'; > ?> > </body> > </html> > > and I receive blank reply even if referenced from a link from other site. > > What am i doing wrong ? Or perhaps my server does not have referer enabled? It's possible that your *browser* does not pass referer information. But keep in mind that if there was no referring page, then there is no referer value for the browser to set. Try this instead: <html> <body> <form method="get"> Page refered by <?php echo $HTTP_REFERER.'<br>'; echo $_SERVER['HTTP_REFERER'].'<br>'; ?> <input type="submit> </form> </body> </html> Load it, check the value, click "Submit", then check again. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php