To see if it was checked:
set your html part like this
<td>
option1 <input type="checkbox" name="option1" value="1" <?=$sel?>>
</td>
when you submit the form you can check if the box was checked or not like this
if($_POST['option1']==1){
//do what ever
}
//to have it selected when the page loads
if($option1==1)
$sel = 'checked';
else
$sel = '';