Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$HTTP_GET_VARS stopped working


Guest

Recommended Posts

i have register globals on

 

i am trying to output a page number, like mysite.com?page=45 like this:

 

$HTTP_GET_VARS['page];

 

 

echo $page;

 

 

and it either shows product_info.php as the page number (how?????) or blank.

anyone know a solution to this? i've tried $_GET and that didn't work either.

Link to comment
Share on other sites

i was able to band-aid it by using

$query = preg_replace('/[^0-9]/i','',$QUERY_STRING);

echo ' Page ', $query;

 

but i can't seem to hide Page if there's no page number available.

 

even

if ($query == ""){
} else {
echo ' Page ', $query;
}

just throws a parse error

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...