HTML checkbox in a form can be given as follow :
<input type="checkbox" name="comment" value="yes">
When you post values from HTML form you can get the post value as follows :
$value = $_POST['comment'];
echo $value; //Print "yes" if value is checked, empty otherwise.