For starters, you generate the checkboxes as you generate the list, naming each one in turn with a key that ties it to the list item. Off the top of my head, I'm guessing that your members table lists member name, and that you also have a unique member id number. As the php generates the list have it generate the boxes, and name each box the corresponding id number. Once you have checked the names you want, you send the form to a script that will put the checked box names into an array that you can use to run your delete query. Remember, check boxes are not all one element the way that radio buttons are. Each box is it's own form element and will return a true or false on it's own.
make ur checkboxes named as array and pass the id if u have it as unique number or whatever field u have defined unique in ur table structure.
then using which index is checked run the delete query in ur php script..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.