You can read the manual on variable variables, it'll help you with this naming technique.
A better options would be to name all of your checkboxes something like this:
<input type=checkbox name=checky[] value="<? echo $row[id]; ?>">
This creates an array of your checkboxes, no matter how many there are. Then you just loop through them in your processing page to see how many are checked.
untested
for($count=0;$count<count($checky);$count++)
{
if ($id_val = $checky[$count])
{
echo "Box for Row $id_val CHECKED";
}
else
{
echo "Box for Row $id_val NOT CHECKED";
}
}
Let me know if you have any questions.
---John Holmes...