The easiest way I can think of at the moment is going through a loop of each of the form rows.
So lets say your page looks like this
Name1 []
Name2 []
([] = checkbox)
Then each checkbox would have to have a unique name, you will have to have a loop and name the checkbox according to the iteration, so like the first checkbox would probably be named id[0], then next one id[1], and then in the PHP it will all be submitted as an array, so you can do:
PHP Code:
foreach($_POST['id'] as $key => $val) {
...
}
And do your deleting query in there. Hoped that helped, I know there is better methods to do it but right now I can't think of any because I just woke up 
So maybe I'll come back in a few hours if you haven't gotten a reply and put up a full example, heh.
|