Hi all..
I got a query that selects something WHERE (a phrase)..
so in IE browser, everything works right, spaces are replaced by %20 automatically.. however, it's not the case in Netscape (4.75)
in the url bar, the space just appears as is.. and my script shows an error that it's an invalid argument...
also, for both browsers, if I have signs like ' " ;, the script wont work. (i know that putting a \ infront of the signs will fix things..
I have tried ereg_replace(" ","%20",$var)
but it doesnt work for me..
any ideas?
Thanks!
ps. I have links like:
script.php?test=1&test2=$variable
$variable is what I need fixed...
Because I need to read the $variable somewhere else on the same page and I dont want the space to be eliminated for that.. so I can't use :
$variable = ereg_replace()
instead, I tried $variablefix = ereg_replace(" ","%20",$variable)..but it didnt work..