contents of page1.php
Code: Select all
<?php
$value = 1;
echo "<a href=\"page2.php?value=$value\">Link</a>";
?>Code: Select all
<?php
echo "value is: " .$value;
?>I keep it on my pc (wxp with IIS and php4) and run from localhost, the value does not get passed over. Nothing is displayed as $value.
After reading other forums where people had similar issues (although theirs was always from a form), I set register_globals=On in my php.ini, that didn't help either. It has to be something with the configuration of either php or IIS