When you use the encode and decode commands/functions/methods
you are only expected to encode/decode the values.
So if you have something like....
RedirectUrl = ("PlaceOrder.aspx?ProductName=Toolbox complete with free Spanners")
You can break that down into the following portions.......
PAGE KEY VALUE... Where...
PAGE is "PlaceOrder.aspx"
KEY is "ProductName" (no spaces!)
VALUE is "Toolbox complete with free Spanners"
Then you would ONLY encode/decode the VALUE(s)
So you would end up with something like....
RedirectUrl = ("PlaceOrder.aspx?ProductName=" & httpEncode("Toolbox complete with free Spanners"))
And as we used ENCODE to encode the VALUE, on the other side (where the data is recieved) we would use DECODE to decode the VALUE only.
Keep in mind that you can have MULTIPLE key/value pairs but ONLY one page