I must be missing something REALLY obvious, but I just can't see what it is.
My understanding of PHP, and reading the documentation, is that URL and form variables are automagically created, so that if I have http://host/page.php&Fred=12 as a URL, my "page.php" script will have access to a variable called "$Fred" which should have the value "12" ?
I've installed Apache 1.3.12 and PHP 4.0.1 out of the box and it doesn't seem to work. If I have a page with the code
<?php echo "Fred is set to $Fred"; ?>
I get nothing. I've also tried just echo $Fred on its own and am still having no joy. Doing phpinfo() shows that track_vars is enabled, and interestingly gives some info further down the page listing HTTP_GET_VARS["Fred"] as being set to "12".
Do I have to use HTTP_GET_VARS each time, like using param('Fred') under Perl or is my understanding that there should just be a variable called "$Fred" correct?
Thanks in advance
Jurgen