here is what I do... which works just as well and assigns whatever is after an equal sign to the prior... er.. well look..
whatever.com/index.php?variable=value&this=that
What it will do is make variable contain value, and this contain that... (all variables) so you can easily do so.
$query = $QUERY_STRING;
$query_Array = explode("&", $query);
foreach ($query_Array as $i) {
$doubleItem = explode("=", $i);
$$doubleItem[0] = $doubleItem[1];
}
Its actually quite easy, now you can just call variables like this, if you had the address index.php?variable=value&this=that
you could just call the variables like normal if you would know the name... such as...
echo $variable;
that would return "value",
echo $this;
that would return "that"
Pretty easy eh? hehe...