Guest Posted August 11, 2006 Share Posted August 11, 2006 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 More sharing options...
Guest Posted August 11, 2006 Share Posted August 11, 2006 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 More sharing options...
Guest Posted August 13, 2006 Share Posted August 13, 2006 surely somebody knows a workaround to this? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.