Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] AJAX: how2post arrays


  • From: david at dorward.me.uk (David Dorward)
  • Subject: [Javascript] AJAX: how2post arrays
  • Date: Thu Nov 16 08:38:05 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