I migrating working PHP code from one environment and find that in the new environment the Get variables are missing. For example, if I pass query string /myprog.php?value=4, the $value is blank in the code.
However, when I use diagnostic code I can see the value in the resulting array.
print "_GET: "; print_r($_GET);
Is this a configuration problem? Any ideas?
justageek
9:25 pm on Jan 28, 2004 (gmt 0)
Are you trying just $value or $_GET['value']? If you see it in the print array then you should see it in the code.
JAG
Romeo
9:26 pm on Jan 28, 2004 (gmt 0)
... perhaps a registerglobals on/off problem (since PHP 4.2.0). Try to find your variable $value in $_GET["value"];" More reading: [de3.php.net...]
HTH and regards, R.
expat123
1:32 am on Jan 29, 2004 (gmt 0)
Yes, it was the register globals that was off. Thanks!