set all of the check boxes to:
<input type=”checkbox” name=”checkbox[]” value=”<?php echo $id ?>” />
That $id will be used to refer to the records to be updated.
To process the form data you use $_POST['checkbox'][$i], for example:
for ($i = 0; $i < count($_POST['checkbox']); ++$i) {
echo “item id: ” . $_POST['checkbox'][$i];
}

Add A Comment