because I echo the checkboxes like this: if($num>0) { echo "<table border=2>"; for($i=0;$i<$num;$i++) { $row=mysql_fetch_row($result); echo "<tr>"; echo"<td><input type='Checkbox' name='p$i' value='yes' unchecked /></td>"; echo"<td>$row[0]</td>"; echo"</tr>"; }//for echo"</table>"; }//if i can't use $_POST because it's not in html how can i insert my items that are checked into table?