save answers for Questtype ?Textinput?
This commit is contained in:
parent
d22618d4b9
commit
b94af71a2b
2 changed files with 13 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<form method="post">
|
||||
<?php for($i=0; $i<count($text); $i++) : ?>
|
||||
<?php if($i > 0) : ?>
|
||||
<input type="text" name="answer-<?=$i?>" value="" />
|
||||
<input type="text" name="answer-<?=$i?>" value="<?=(count($answers) > $i-1) ? $answers[$i-1] : '' ?>" />
|
||||
<?php endif ?>
|
||||
<?=\hhu\z\Utils::t($text[$i])?>
|
||||
<?php endfor ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue