Skip to content
Browse files

Maxlength fields

  • Loading branch information...
1 parent e550e2d commit 138def3ead275ef04653e4d87cc61d715876dd20 moodler committed Aug 25, 2003
Showing with 6 additions and 6 deletions.
  1. +6 −6 mod/quiz/multichoice.html
View
12 mod/quiz/multichoice.html
@@ -63,7 +63,7 @@
<TR valign=top>
<TD align=right><P><B><? print_string("choice", "quiz") ?> 1:</B></P></TD>
<TD>
- <INPUT type="text" name="answer[]" size=50 value="<? p($answers[0]->answer) ?>">&nbsp;&nbsp;
+ <INPUT type="text" name="answer[]" size=50 maxlength=255 value="<? p($answers[0]->answer) ?>">&nbsp;&nbsp;
<? print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[0]->fraction, ""); ?>
@@ -84,7 +84,7 @@
<TR valign=top>
<TD align=right><P><B><? print_string("choice", "quiz") ?> 2:</B></P></TD>
<TD>
- <INPUT type="text" name="answer[]" size=50 value="<? p($answers[1]->answer) ?>">&nbsp;&nbsp;
+ <INPUT type="text" name="answer[]" size=50 maxlength=255 value="<? p($answers[1]->answer) ?>">&nbsp;&nbsp;
<? print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[1]->fraction, ""); ?>
@@ -105,7 +105,7 @@
<TR valign=top>
<TD align=right><P><B><? print_string("choice", "quiz") ?> 3:</B></P></TD>
<TD>
- <INPUT type="text" name="answer[]" size=50 value="<? p($answers[2]->answer) ?>">&nbsp;&nbsp;
+ <INPUT type="text" name="answer[]" size=50 maxlength=255 value="<? p($answers[2]->answer) ?>">&nbsp;&nbsp;
<? print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[2]->fraction, ""); ?>
@@ -126,7 +126,7 @@
<TR valign=top>
<TD align=right><P><B><? print_string("choice", "quiz") ?> 4:</B></P></TD>
<TD>
- <INPUT type="text" name="answer[]" size=50 value="<? p($answers[3]->answer) ?>">&nbsp;&nbsp;
+ <INPUT type="text" name="answer[]" size=50 maxlength=255 value="<? p($answers[3]->answer) ?>">&nbsp;&nbsp;
<? print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[3]->fraction, ""); ?>
@@ -147,7 +147,7 @@
<TR valign=top>
<TD align=right><P><B><? print_string("choice", "quiz") ?> 5:</B></P></TD>
<TD>
- <INPUT type="text" name="answer[]" size=50 value="<? p($answers[4]->answer) ?>">&nbsp;&nbsp;
+ <INPUT type="text" name="answer[]" size=50 maxlength=255 value="<? p($answers[4]->answer) ?>">&nbsp;&nbsp;
<? print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[4]->fraction, ""); ?>
@@ -168,7 +168,7 @@
<TR valign=top>
<TD align=right><P><B><? print_string("choice", "quiz") ?> 6:</B></P></TD>
<TD>
- <INPUT type="text" name="answer[]" size=50 value="<? p($answers[5]->answer) ?>">&nbsp;&nbsp;
+ <INPUT type="text" name="answer[]" size=50 maxlength=255 value="<? p($answers[5]->answer) ?>">&nbsp;&nbsp;
<? print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[5]->fraction, ""); ?>

0 comments on commit 138def3

Please sign in to comment.
Something went wrong with that request. Please try again.