Skip to content

Commit

Permalink
Added $prefix to form fields so that this code could be used with man…
Browse files Browse the repository at this point in the history
…ual grading
  • Loading branch information
mark-nielsen committed Apr 8, 2006
1 parent caca24d commit dbb3c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/comment.html
Expand Up @@ -10,7 +10,7 @@
</td>
<td>
<?php
print_textarea($usehtmleditor, 15, 60, 630, 300, 'comment', $state->comment);
print_textarea($usehtmleditor, 15, 60, 630, 300, $prefix.'[comment]', $state->comment);
?>
</td>
</tr>
Expand All @@ -19,7 +19,7 @@
<b><?php print_string('grade', 'quiz'); ?>: </b>
</td>
<td>
<input type="text" name="grade" size="2" value="<?php echo $grade; ?>" />/<?php echo $question->maxgrade; ?>
<input type="text" name="<?php echo $prefix; ?>[grade]" size="2" value="<?php echo $grade; ?>" />/<?php echo $question->maxgrade; ?>
</td>
</tr>
</table>

0 comments on commit dbb3c4c

Please sign in to comment.