Re: NEWBIE: request querystring

From: Date: Fri, 24 Jan 2003 20:48:53 +0000
Subject: Re: NEWBIE: request querystring
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133045@lists.php.net to get a copy of this message
--- Tim Haskins <tim@copiousdg.com> wrote: > I am crossing over from ASP to PHP and was > wondering how to get the same affect as > request.questring? If your URL is: http://example.org/foo.php?bar=hello Then you can use $_SERVER['QUERY_STRING'] to get: bar=hello or you can use $_GET['bar'] to get: hello The $_GET[] array is probably more convenient, depending on what you are doing, but you can get the raw query string if you want as noted above. Chris

« previous php.general (#133045) next »