looping the query_string into a $var=$value
| From: | Matt Babineau | Date: | Sat, 16 Nov 2002 23:41:34 +0000 |
| Subject: | looping the query_string into a $var=$value | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16992@lists.php.net to get a copy of this message | ||
I was wondering how I can loop over the QUERY_STRING server variable to
make all the get variables into a localized variables. I know it has
something to do with setting the variable using a double $$? is that
correct?
/*localize url vars */
$urlQuery_string = explode("&", $_SERVER['QUERY_STRING']);
for ($i=0; $i < count($urlQuery_string); $i++) {
$keyvalue = explode("=", $urlQuery_String[$i]);
/* ok now what? */
}