I have a PHP web form that pulls records from a database table. Based on the data in the table, the records are displayed with checkboxes that have a value that is equal to the record's ID.
To handle this form submission, how do i detect which checkboxes have been checked? If this was a static form, I could handle it based on the name of the field but since the checkbox values are not static, how do i check for all the checked boxes on submission?
Thanks....
Retrieving data from dynamic forms
Moderator: General Moderators
This is what my checkbox looks like:
Code: Select all
<input type="checkbox" name="deleteimg[]" value="<?= $row[0] ?>">