Page 1 of 1

Selection field (list box) resets

Posted: Mon Oct 01, 2007 12:00 pm
by Raidersguy
I wonder if there is a way round a small problem, I have added a list box field to the form which functions OK apart from a little annoying problem, when you fill in the form and make a mistake say typing the SPAM number in for example it resets the selection made, below if the code I used:

<td>newfield :</td>
<td><select name="period" size="2" id="period">
<option>selection 1</option>
<option> selection 2</option>
<option> selection 3</option>
<option>FIELD NAME</option>
</select></td>
</tr>

I appreciate I have added this code and relies it’s not a problem with the guestbook but maybe there is better way of coding this list box.