Hi, > I'm not clicking on why the method for sending form data via ajax is like: > > [{"name":"customerid", "value":"47"}, {"name":"supplierid", "value":"32"}, > ...] > > As opposed to: > > {"customerid":"47", "supplierid":"32", ...} > > > Can someone give me a clue?
There can be more than one field with the same name. PHP uses this: <input type="checkbox" name="asdf[]" value="1234"> <input type="checkbox" name="asdf[]" value="5678"> <input type="checkbox" name="asdf[]" value="1928"> Then in PHP $_REQUEST['asdf'] is an array with all the selected Elements, e.g.: ['1234','1928'] if only the first and the last checkbox have been selected. Christof _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/