Don-Dad
04-05-2006, 06:32 PM
I need help I am trying to send a query string to another PHP script. I can get it working outside the script using a simple echo using the variable
$q = $_GET["q"];
echo "hello $q"
but I have a piece of code and the data needs to be "cleaned removing the %20 but leaving the spaces in the script (I am a newbie to php)
this is part of the line of code
echo GetSearchResults($query=$q, $isEmpty=1, more here....
$q needs to be something like 'Baseball Bat' not 'Baseball%20Bat'
Any assistance is appreciated :)
$q = $_GET["q"];
echo "hello $q"
but I have a piece of code and the data needs to be "cleaned removing the %20 but leaving the spaces in the script (I am a newbie to php)
this is part of the line of code
echo GetSearchResults($query=$q, $isEmpty=1, more here....
$q needs to be something like 'Baseball Bat' not 'Baseball%20Bat'
Any assistance is appreciated :)