OK, I adjusted the original HTML to
echo "<tr><td>$key</td<td>$date</td><td>$dateordered</td>";
echo "<td>$status</td><td>$name<td>$item</td></td>";
echo "<td><input type=\"checkbox\" name=\"chkDel[$key]\"></td></tr>";
Then the parsing code to
if ($act=="Submit Changes"){
$count=$POST['txtChecks'];
$recs=$POST['chkDel'];
//print_r($recs);
$n=0;
echo line."<br>";
foreach ($recs as $key => $chk){
echo line." : $key, $chk<br>";
$n+=1;
}
}
The foreach() values will allow the manipulation I need, methinks.
In answer to your question, these values are from a [almost] .csv file provided by Google Checkout. (I'm helping a friend get his store/school set up.) Google has a unique ID for every transaction. Unfortunately, those are not unique IDs for the Capt. For instance, John Doe submits payment data for a class - transaction one (1) - but then thinks it was the wrong one, so he cancels and submits for a different class - transactions two (2) and three (3) - then discovers he was right the first time, cancels the new one and resubmits the old one, but only pays half - transaction four (4) and a future transaction five (5).
Now, that's all well and good for Google, and I understand the need for it, but the Capt just needs to see the finished - albeit not necessarily the latest - transaction.
So I now have several unique IDs from Google for what is essentially a single transaction on the Capt's part. So I set up a form that will allow him to view all existing transactions and mark all but the one (1) relevant to his needs as deleted. Doesn't really delete anything, just marks a boolean field for reference in other queries.
Since I won't know on any given [almost] .csv file, I set up one form to kill multiples before they're input into the database, and another to allow for multiple entries from separate .csv files. (At some point those will likely be merged.) The form for table data was easy, as there are MySQL-generated unique ids there, but the .csv stuff was really eating my lunch.
OK, I think I can mark this one as resolved - if I can find the correct button 😃.