[thelist] Escape of the Commas!

Dmytro Borovsky thelist at web-artel.net
Tue Jun 25 17:00:02 CDT 2002


>    I've got multiple form elements (checkboxes, in this case) with the
>    name. Sometimes, their values contain commas. I'd like to escape or
>    Anyone know how to escape those pesky comma values?

Sorry for interrupting, but I could not understand what this staff is all
about. Every value IS URL ENCODED before sent, so all the functions in
replies are of no need.


<input type="checkbox" name="one" value="1,1,1,1" />
works fine. The string sent is "1%2C1%2C1%2C1%2C" -- already encoded!

<tip type="Form Value Encoding" author="Dmytro Borovsky">
Every input value sent by form is URL encoded by browser.
I. e.
You know, don't you?
is sent as

Decoding is done automaticaly server-side.

Have a nice day.
Dmytro Borovsky.

More information about the thelist mailing list