Select list validation
Posted: Mon Mar 21, 2005 12:55 pm
When validating a select list how can I default the list to what the user has chosen if other parts of the form have errors.
With a text field I have the following that shows what the user entered if other parts of the form have errors. I need to do the same thing for the select list
Text Box
Select List
With a text field I have the following that shows what the user entered if other parts of the form have errors. I need to do the same thing for the select list
Text Box
Code: Select all
<input type="e;text"e; name="e;subs_title"e; size="e;32"e; value="e;<?php echo $subs_title; ?>"e; class="e;mainoption"e;>Code: Select all
<select name="e;subs_res"e; class="e;mainoption"e;>
<option selected="e;selected"e;>Select....</option>
<option>640*480</option>
<option>800*600</option>
<option>1024*768</option>
<option>1152*864</option>
<option>1280*1024</option>
<option>1600*1200</option>
<option >Other</option></select>