Just process the form as usual. Only the checked boxes will correspond to some incoming variable in your script.
Thanks once again laserlight,
I do apprecieate your input, and certainly intend NO disrespect, but I do NOT think we are having the same conversation. To reiterate, here is the latest incarnation of the originally posted code in it's entirety.
$result=mysql_query($select_contacts)or die ("Failed Selecting Contacts ".mysql_error());
$numrows = mysql_num_rows($result);
while ($row=mysql_fetch_array($result)) {
$contactID = $row["id"];
$fullName = $row["full_name"];
$contacts = "
<form name='update_contact' method='post' action='contact_detail.php'>
<input type='hidden' name='select_account' value='$select_account'>
<input type='hidden' name='user' value='$user'>
<input type='hidden' name='select_contact' value='$contactID'>
<input type='hidden' name='phone_office' value='$phone_work'>
<input type = 'checkbox' id='mass_delete[]' name='mass_delete[]' value='$contactID'>
<a href='#'onclick='submit();'> $fullName </a>
</form>
";
echo $contacts;
}
Which will return any number of forms to comprise the list "$contacts" -- one for each id/name pair returned from the query $result.
Now, say $numrows = 20, FIVE of which I wish to delete. The 5 corrisponding "mass_delete[]" checkboxes I might check, will exist in five seperate forms on the page, so In this context, to say "Just process the form" appears utterly meaningless. Which form? To "process" any one of the twenty, is in effect a call to a forms page(contact_detail.php) in which to EDIT that one-of-twenty, when the goal is that this ONE, along with FOUR OTHERS, should be deleted altogether (or marked deleted=1).
Please, no offense intended, but I am really strugggling with this -- STILL!!!