rtimmons wrote in php

hey all, simple question.  I'm a veteran (more or less) PHP-er.  Saying this, I can't believe I need help with this.

What's the correct code to print the HTTP referer?  I've always used
<?php
$rfr=getenv("HTTP_REFERER");
echo "$rfr";
?>

but the server I'm on at the moment is turning up blank.  Any thoughts?

Thanks a ton!

edit: usually my questions result from lack of thorough understanding of terminology. Anyhow, apparently the refering page must link or otherwise directly point to a page in order to be its referer. Ergo, simply typing in an address from one page will not result in it being the referer of the page whose address was entered. Thanks to those whoe helped!