Passing strings from submitted forms into PHP script
Posted: Thu Nov 11, 2004 12:48 am
When I tried something like:
products.php?productType=Portable Electronics
... $productType ended up being "Portable%20Electronics" in products.php
The whitespace has been replaced by this %20 ascii value. I can't find a way to strip that character to get the intended text back. I can 'circumvent' the problem, but I don't want to add more unneccessary code. Please help!
products.php?productType=Portable Electronics
... $productType ended up being "Portable%20Electronics" in products.php
The whitespace has been replaced by this %20 ascii value. I can't find a way to strip that character to get the intended text back. I can 'circumvent' the problem, but I don't want to add more unneccessary code. Please help!