I'm very new to PHP as I normally deal with ASP but want to upgrade.
I'm having trouble passing a variable from the address bar. I have fixed the problem but don't understand why!...
Origingal code i was using was:
<a href="test.php?test=Hello">TEST CLICK</a>
<?php
echo"$test";
?>
When I clicked the link, nothing apeared.
I fixed it (with advice from this site) and used:
<a href="test.php?test=Hello">TEST CLICK</a>
<?php
echo $_GET['test'];
?>
This works fine, but why doesn't the first one? Every book I have looked at says I should use "$test".
The server is using PHP version 4.3.2 if thats any help.