Well,
What do you use as name for the checkboxes? You could use the tablename[] as textboxname.
But you should really be carefull here. If it is only for yourself, or an internal appl. it might be OK. but if this is to be a live server, people can easily tamper with your database, by creating their own inputelements. Make sure you test the permissions for deleting, and add a limit 1 to the delete query.