Something like this, perhaps?
foreach ($_POST['delete'] as $deleteid) {
$query = 'SELECT * FROM db_book WHERE id=$deleteid';
$resource = mysql_query($query);
if ($result = mysql_fetch_array($resource)) {
$query = "INSERT INTO
new_table_foo (col1, col2, col3)
VALUES
('{$result['val1']}', '{$result['val2']}', '{$result['val3']}')";
mysql_query($query);
$query = "DELETE FROM db_book WHERE id=$deleteid";
mysql_query($query);
}
}
You'll have to fill in the insert query table name, column names, values, and whether or not to use quotes.