I cannot get my $_GET to work. It works on every other site I have on the server but just not on this site. The site is osCommerce and I am running PHP 5.
if (($HTTP_GET_VARS['image'] ==0) && ($products['products_image_lrg'] != '')) { //do something }; I also tried
echo $_GET['image'] and it still will not work. It just gives me undefined index.
The URL looks like this: /blah.php?image=2
I have stripped the page down to the bare still not working see below
<?php echo $HTTP_GET_VARS['image']; echo $_GET["image"]; echo "<br />"; ?> I get this
Notice: Undefined variable: HTTP_GET_VARS in \popup_image.php on line 3 Notice: Undefined index: image in \popup_image.php on line 4 I have been doing some more digging and it looks like a problem somewhere in oscommerce not allowing it to read
$HTTP_GET_VARS['image']==0to$_GET['image']==0