On Wed, 5 Sep 2001 06:45, Balaji Ankem wrote:
> Hi friend,
> what will be the output for the following program?
>
>
> <?php
>
> $foo=$HTTP_SERVER_VARS["HTTP_REFERER"];
>
> echo $foo;
>
> ?>
>
>
>
> For me it is printing the blank value.
>
> Thanks in advance
>
> Regards
> -Balaji
There will only be a value in HTTP_REFERER if the page was referenced via
a link from elsehwere (generally). If you just call the script by putting
its URL in the LOCATION box, it will be empty.
Read The Fine Manual chapter 7 on variables for more information.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
No one ever said "if I'd only spent more time in the office"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]