I have a form with 640 cards each with a checkbox so the user can mark the ones he owns.
I'm wondering how to write the update SQL statement to take each of the 640 card ids and insert/update into the db.
Each row is created by this code:
echo "<td>"?>
<form name="some form" action="editform.php" method="post">
<input type="checkbox" name="<?php
echo $row['stickerID'] ?>" value=" <?php echo $row['stickerStatus'] ?> ">
<?php "</td>";
echo "</tr>";
}
I know I need some kind of for each loop in php. But how do I get the 640 individual checkboxes from the post?