Click to See Complete Forum and Search --> : how to escape() a GET URL


Mountaineer
11-10-2003, 07:27 PM
I know questions about the escape() function have been discussed before but I am confused about how specifically to escape() the URL produced when a form is submitted.

I have the method down for unescaping that URL on the action page for the form but cannot seem to come up with a function to escape the URL properly in the first place. I have seen alternatives that build a location URL that escape all of the form fields but does not allow you to use your back button and correct the form.

It is mostly spaces that I want to convert to %20. Any help with just how to escape() the complete GET URL would be greatly appreciated.

Larry

Khalid Ali
11-11-2003, 06:24 AM
browser should automatically replace spaces with "%20". in my opinion you will only be worried about un-escaping it.

Mountaineer
11-11-2003, 01:27 PM
Unfortunately the browser replaces the space with a + sign rather than %20, unescaping does not replace the plus sign with a space. Thanks for the reply.

Jeff Mott
11-11-2003, 02:16 PM
unescaping does not replace the plus sign with a spaceSo you're trying to decode the query string then? If so then see 162208.