Hi all -
I have a URL from which I want to grab certain variables. The URL however is full of variable names that are two words. Looks something like this:
variable%20one=foo&variable%20two=bar&variable%20three=12345 ...
Since I can't change the URL, I tried str_replace("%20", "", $str); and that did indeed remove all the %20 but I can't seem to figure out how to grab the variables from the str_replace result.
I can echo the $parts and I think I need to use explode next but I still can't work it out. Please help!
Thanks,
Bob
<?
$str = $_SERVER['QUERY_STRING'];
$parts = str_replace("%20", "", $str);
echo $parts; // this prints out fine to the screen
// this is where I'm unsure of what to use
echo $variableone;
?>