[Javascript] AJAX: how2post arrays

David Dorward david at dorward.me.uk
Thu Nov 16 08:37:39 CST 2006


On Thu, Nov 16, 2006 at 03:37:42PM +0100, Michael Borchers wrote:
> my POST AJAX script works fine for single <input> fields so far, but how do 
> i post arrays like:
> 
> <input type="checkbox" name="foo[]">
> <input type="checkbox" name="foo[]">

Since they lack values, its rather difficult.

If they had values, then mock up a form, hit submit, look at the
generated URL. That will tell you how to x-url-form-encode the data.

-- 
David Dorward                                      http://dorward.me.uk





More information about the Javascript mailing list