mirror of
https://github.com/idanoo/nzart-exam-generator
synced 2025-06-30 21:32:17 +00:00
Make answers required
This commit is contained in:
parent
6dff0d62ab
commit
4e3c1d064d
1 changed files with 1 additions and 1 deletions
|
@ -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> </td><td></td></tr>";
|
echo "<tr><td> </td><td></td></tr>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue