I have a form with multiple select items. I can select multiple items. But how do I select those items which I initially selected, if I wrongly input other fields of the form with PHP ?
<select name="interest[]" class="tr5" multiple="multiple">
<option value="">Select..</option>
<option value="art">Art</option>
<option value="litteratures">Litteratures</option>
<option value="business" >Business</option>
<option value="internet" >Internet</option>
</select>
I can do this without multiple tag with php.
<option value="internet" <?php if(isset($_POST['interest']) && $_POST['interest'] ==
"internet") echo 'selected = "selected"';?>>Internet</option>
Thanks for your help.