I have a table with dynamic data from the db and when the user ticks the checkboxes I want to submit three arrays of the ticked checkboxes that contain different data: [Dev_Id]
, [dev_comment]
, [manuf_comment]
.
This is what I am currently doing but its not ok because when I submit i cant access all three arrays:
<td>
<input type="checkbox" name="devices[<?php echo $cases["dev_comment"]; ?>][<?php echo $cases["manuf_comment"]; ?>]" value="<?php echo $cases["Dev_Id"] ?>">
</td>
In PHP:
if (isset($_POST['save_comments']) && is_array($_POST['manuf_comment'])) {
///
}
Any suggestions?
Aucun commentaire:
Enregistrer un commentaire