I have a HTML Table which is used as a checklist. There are multiple checklists and user can create their own checklist and items as well. This checklist have a random amount of rows.
$table .= "<tr style='cursor: pointer; border: 1px solid black;' onclick='selectVal(this)'>
<td style='border: 1px solid transparent; width: 5%;' class='cbTrue'><input type='hidden' value='".$srcarr['id']."' name='item_id' /><input type='checkbox' name='".$srcarr['id']."_True' /></td>
<td style='border: 1px solid transparent; width: 30%;'>".$srcarr['item']."</td>
<td style='border: 1px solid transparent; width: 30%;'><input type='hidden' class='ckTimeStamp' /></td>
</tr>";
$srcarr
is my array which comes from a MySQLI query and contains the information of the ID of an Item or the Name oft an Item.
My problem is: I want to save the items with the information if they have been checked and at which time in a MySQL Database. But I have no idea how to know after the form have been posted to PHP how I can separate the information about the single items. Does anybody have an idea?