Make answers required

This commit is contained in:
Daniel Mason 2017-01-01 11:27:36 +13:00
parent 6dff0d62ab
commit 4e3c1d064d

View File

@ -65,7 +65,7 @@ if(!isset($_POST['mark'])) {
foreach($q->answers as $x=>$ans) { foreach($q->answers as $x=>$ans) {
echo "<tr>"; echo "<tr>";
echo "<td></td>"; echo "<td></td>";
echo "<td style='padding-left:10px'><input type='radio' name='".$q->getId()."' value='".$ans->getId()."'> ".($letters[$x]." ".$ans->getAnswer())."</td>"; echo "<td style='padding-left:10px'><input type='radio' name='".$q->getId()."' value='".$ans->getId()."' required> ".($letters[$x]." ".$ans->getAnswer())."</td>";
echo "</tr>"; echo "</tr>";
} }
echo "<tr><td>&nbsp;</td><td></td></tr>"; echo "<tr><td>&nbsp;</td><td></td></tr>";