Forum Moderators: coopster

Message Too Old, No Replies

Get variables missing

Just installed php4

         

expat123

9:06 pm on Jan 28, 2004 (gmt 0)

10+ Year Member




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)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



... 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)

10+ Year Member



Yes, it was the register globals that was off. Thanks!