you assign a value to each checkbox.. the value of each checkbox should be the ID value of the data it represents in the database. On this site, they've more than likley printed the checkboxes by their values straight from the DB..
Say there were 10 entries in the DB that u wanted to print out, each entry with it's own unique ID in the DB. So.. u loop through and print the 10 results out..
say u check 5 of them for deletion.. u could make an array that holds each value of the 5 checkboxes.. then using that array.. loop through with a delete query to the datatbase deleting each item by it's unique ID (the value of each checkbox).
And there you have it 😉
Hope Iv'e helped rather than confused you!
Regards, Stezz.