Yes I thought about that, but the problem is that if the db ID records are in the high order (perhaps several have been deleted so the first ID autoincremental would be like 200 or so) then when you run a for-next loop to check the checkbox[ID] it would take an age to go through the permutations 🙁
An alternative I was considering would be to set a counter at the start of each record display, then adding another array variable for the ID, and relating that to the actual DB ID, for instance something like:
$rowctr = 0;
if ($myrow = mysql_fetch_array($result)) {
do { ?>
<td align="center"><a href="access.php?<? echo $tok; ?>&tp=prp&edit=1&rec=<? $boxctr[$rowctr] = $myrow["ID"]; echo $myrow["ID"]; ?>">Edit</a></td>
<? } ?>
<td align="center"><input name="chk[<? echo $rowctr++; ?>]" type="checkbox" value=""></td>
...
<? } while ($myrow = mysql_fetch_array($result));
Not tried this, but do you think using this in a $_POST loop of $rowctr could be a way to get it done?