Re: PHP url variables

From: Date: Fri, 14 Mar 2003 02:36:32 +0000
Subject: Re: PHP url variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139654@lists.php.net to get a copy of this message
Try: parse_str( $_SERVER['QUERY_STRING']); "Stephen" <sbarrow@pittsh.com.au> wrote in message news:20030314012710.33114.qmail@pb1.pair.com... > Hi > > I have just installed PHP 4 and Apache 2 but when I pass a variable in a url > eg ?id=1 > I can't get the variable value by $id, I have to use $_GET['id'] or > $_POST['id'] > > Is there a setting I need to change to allow me to use the $id? If there is > it will save a lot of additional coding. > > Thanks, > > Stephen > >

« previous php.general (#139654) next »