PDA

View Full Version : get query string info


Roost3r
09-23-2002, 11:34 PM
i looked on php.net and the forums here and didnt find much to help me with this

i have a query string like this:
http://localhost/review/show.php?newsid=6&p=1

i checked my php.ini and register_globals was on
in my php file i tried:

echo $newsid;
print $newsid;
$_GET['newsid'];
$_GET["newsid"];

none of em worked; any ideas

Leinad
09-24-2002, 02:02 AM
Did you restart your webserver?

Spookster
09-24-2002, 02:25 AM
Yeah but did you try?

$HTTP_GET_VARS["newsid"];


You should really get into the habit of working with register_globals off.

Also here is an article on the subject:

http://www.zend.com/zend/art/art-sweat4.php