Correct.  And although I haven't tried this on PHP servers, on a .NET server, 
the following form data passed:

cb=1&cb=2&cb=3

Would be interpred on the server side:

Request.Form["cb"] == "1,2,3";

JK


-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
Alsup
Sent: Friday, April 27, 2007 11:33 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Help Modifying the Action Page of an AJaX Form


> The problem is that formSerialize() doesn't "properly" encode checkbox
> values.  Given a set of checkbox options with the same name, normal
> form encoding passes the values as a comma-delimited list.

Noooo, that's not true at all.  Normal, and proper, serialization
would take the following markup:

    <input type="checkbox" name="cb" value="1" />
    <input type="checkbox" name="cb" value="2" />
    <input type="checkbox" name="cb" value="3" />

and generate this (assuming all three boxes are checked):

    cb=1&cb=2&cb=3

You can look at the spec here: http://www.w3.org/TR/html401/interact/forms.html

Mike

Reply via email to