Gram wrote:
[snip replace function]
The replace function here removes any '%20' it finds and replaces it with a
space
This won't work due to the nature of the HTTP standard (should be
somewhere within RFC 2616).
Because a http query string cannot contain spaces within a request
(blanks are userd as separators f.ex. "GET index.html") they are being
replaced by your browser automatically. Therefore some kind of
server-sided replace function will not work - and even should not work.
However, your webserver knows about this and replaces all %20 with
spaces so you can access your variables again with spaces instead of %20.
This does affect other special characteres as well. There is a
server-function that you can use to encrypt a string before processing
your document to the client: Server.HTMLencode (SomeString)