happyjack1
Technical User
I have a form requiring data input for all fields. When any field is left blank and the data is submitted, the cgi file generates a new form which is populated with data already input and an error message to fill in the missing data.
An anomaly occurs with the reprinted form. One field often requires input of more than one word from the original form. However, the reprinted form populates the text field with only the first word of the string.
To test this, please go to: .
Enter a bunch of data in the fields leaving a couple of fields blank. In the "Course Played" field enter 3-4 words. Submit the data. The resulting reprinted form will repopulate each text field. However the Course Played field will populate with only the first word of the input string.
A snippet of the Perl used to repopulate the form is :
<td width="25%"><p align="left" class="bold">Course Played </p></td>
<td width="55%"><div align="left"><input type="text" name="course" size="60" value = $in{'course'}></div></td>
<td width="20%"><p align="left" style="color:red">
eoh
#Write out error message if course is missing
if($in{'course'} eq "")
{print "Required field";}
print <<"eoh";
</p></td>
What can I do to populate with the entire string??
Thanks much for your input!
Jack
An anomaly occurs with the reprinted form. One field often requires input of more than one word from the original form. However, the reprinted form populates the text field with only the first word of the string.
To test this, please go to: .
Enter a bunch of data in the fields leaving a couple of fields blank. In the "Course Played" field enter 3-4 words. Submit the data. The resulting reprinted form will repopulate each text field. However the Course Played field will populate with only the first word of the input string.
A snippet of the Perl used to repopulate the form is :
<td width="25%"><p align="left" class="bold">Course Played </p></td>
<td width="55%"><div align="left"><input type="text" name="course" size="60" value = $in{'course'}></div></td>
<td width="20%"><p align="left" style="color:red">
eoh
#Write out error message if course is missing
if($in{'course'} eq "")
{print "Required field";}
print <<"eoh";
</p></td>
What can I do to populate with the entire string??
Thanks much for your input!
Jack