All the checkboxes should have the same name, with different values (preferably the ID # of whatever you're doing). Then, when you POST the form, you'll have an array in $_POST['id'][] which you can use a foreach loop to loop through and do whatever you want to do.