this is some code im working on i hope it helps u
$count =0;
while($a_row=mysql_fetch_array($link))
{
$count++;
$value=chk.$count;
print("$value");
print("<tr><td><input type= CHECKBOX name = $value value=$a_row[comm_id]></td>");
print("<td>$a_row[comm_id]</td>");
print("<td>$a_row[date_add]</td>");
print("<td>$a_row[name]</td>");
print("<td>$a_row[email]</td>");
print("<td>$a_row[comment]</td>");
print("</tr>");
this bit should be in a loop but
if($chk1.checked == true)
print("$chk1");
if($chk2.checked == true)
print("$chk2");
if($chk3.checked == true)
print("$chk3");
Good luck