using IIS, variables won't pass from link
Posted: Fri Apr 28, 2006 9:05 pm
i have very simple script that just passes variable from one page to another in the link
contents of page1.php
contents of page2.php
I upload to a webhost that I have a site on and it works great
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
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