----> Some like to go this way ---->
<---- Others like to go this way <----
<---- Or you could always go both ways ---->
(Sorry, Wizard of Oz moment....)
Okay, so if the checkboxes are given a name like: row[] in the form, then in your code you'd loop through the sub-array of POSTed data and query the database for each result. So your check-boxes look like:
<input type="checkbox" name="row[]" value="_row_id_from_mySQL_row_">
So, in the next form when it's submitted, row will be an array of all the mySQL row IDs of the selected items. So, if you selected 5 items, you'd loop through the POST['row'] array:
$query = 'SELECT * FROM `table` WHERE ';
foreach($_POST['row'] as $rowid)
{
$query .= "id='".$rowid."' OR";
}
// Nifty trick... the last "OR" becomes "ORDER"...
$query .= "DER BY id ASC";
And then you'd go on from there....