php - Passing form array data through jQuery AJAX -


i have form allows add multiple listings @ 1 time.

i have pass through md5check.

i.e.)

<select name="master_id"></select>  <select name="id2[]"></select> <select name="id3[]"></select> <input name="text[]"></input> <input name="text2[]"></text> <input name="text3[]"></text> <input name="check[]" type="checkbox"></input>  <select name="id2[]"></select> <select name="id3[]"></select> <input name="text[]"></input> <input name="text2[]"></text> <input name="text3[]"></text> <input name="check[]" type="checkbox"></input>  <select name="id2[]"></select> <select name="id3[]"></select> <input name="text[]"></input> <input name="text2[]"></text> <input name="text3[]"></text> <input name="check[]" type="checkbox"></input>  jquery.ajax({     type: "post",     url: ipb.vars['base_url'] + "app=main&module=ajax&section=upload&do=upload",     data: {         'md5check': ipb.vars['secure_hash'],     }     }).done(function() {     alert( "data saved:");     }); 

i want pass in master id , arrays through ajax can $_request'ed in php. 'md5check' must there.

data can take string so, can used

jquery.ajax({   type: "post",   url: ipb.vars['base_url'] + "app=main&module=ajax&section=upload&do=upload",   data: $('input[name="username[]"],input[name="password[]"],input[name="rawtext[]"]').serialize()     + '&md5check='+ipb.vars['secure_hash'], }).done(function() {   alert( "data saved:"); }); 

Comments