Well, I'd create a group of checkboxes. Make the name of the checkbox "remove[{$id}]", give it a value of $id, and that's it for the form. So for example...
PHP Code:
$result = $stmt->fetchAll();
foreach($result as $row)
{
$this->addEelemnt('checkbox', 'remove['.$row['id'].']', array(
'value' => $row['id'],
'label' => $row['title'],
);
}
Now, once they submit the form, all you have to do is look at $_POST['remove'] and you have all the IDs they want to delete. From there you can either run multiple delete() calls on the database, or do something like:
PHP Code:
$db->delete('table', 'id IN(' . implode(',', $_POST['remove']) . ')');
Hope that helps.