matrixtech
Programmer
Hello,
I am a newbie to PHP. I am trying to write a script to find verify what page a user just came from. I am not sure which function to use $_Server or HttpServerVars. I have tried both passing them all the variables that you see from running a phpinfo program. They all show up blank. I dont get any error messages though. I am writing my code like this
<?php
echo HTTP_SERVER_VARS['HTTP_REFERER'];
?>
That code would show up blank. PS I am using earthlinks server which is why I am using that version of PHP.
Any ideas would be appreciated. Does it have to do with global variables? Also, does capitalization matter with predefined variables? Could I write http_server_vars['http_referer']?
Thanks a bunch,
Geoff
I am a newbie to PHP. I am trying to write a script to find verify what page a user just came from. I am not sure which function to use $_Server or HttpServerVars. I have tried both passing them all the variables that you see from running a phpinfo program. They all show up blank. I dont get any error messages though. I am writing my code like this
<?php
echo HTTP_SERVER_VARS['HTTP_REFERER'];
?>
That code would show up blank. PS I am using earthlinks server which is why I am using that version of PHP.
Any ideas would be appreciated. Does it have to do with global variables? Also, does capitalization matter with predefined variables? Could I write http_server_vars['http_referer']?
Thanks a bunch,
Geoff