[thelist] Escape of the Commas!

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


Hi

>    I've got multiple form elements (checkboxes, in this case) with the
same
>    name. Sometimes, their values contain commas. I'd like to escape or
replace
>
>    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.

:))))

Simple
<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
You+know%2C+don%27t+you%3F

Decoding is done automaticaly server-side.
</tip>

Have a nice day.
Dmytro Borovsky.




More information about the thelist mailing list