Use this, USE THIS! I swear its better rofl... Anyways...
$query = $QUERY_STRING;
$query_Array = explode("&", $query);
foreach ($query_Array as $i) {
$doubleItem = explode("=", $i);
$$doubleItem[0] = str_replace("%20", " ", $doubleItem[1]);
}
It assigns variables values... soooo
lets say you have: index.php?variable1=value1
It will assign $variable1 the value of "value1"... also it can do this...
index.php?variable1=value1&variable2=value2
So you can assign variable2 and variable 2... oh btw, you want to create spaces?
<a href="index.php?variable=I have spaces in here">Spaces</a>
When they click on the link the actual address will be: index.php?variable=I%20have%20spaces%20in%20here
But when it gets to the page, and you echo out "$variable" you will see it as just text with spaces like normal... the top code parses out all that... I'm still workin on a few more things but don't do so, Until needed. 🙂