Hi,
I have a drop down list and once it's submitted, I'd like to display it again with the selected value. This works but then I have the value listed twice.
<select name="position">
<option selected>Choose One</option>
<option value="director">director</option>
<option value="superintendent">superintendent</option>
<option value="administrator">administrator</option>
<option value="other">other</option>
</select>
After Posting Form:
<select name="position">
<option value="<%=Server.HTMLEncode(Request.Form("position"))%>" ><%=Server.HTMLEncode(Request.Form("position"))%></option>
<option value="director">director</option>
<option value="superintendent">superintendent</option>
<option value="administrator">administrator</option>
<option value="other">other</option>
</select>
Thanks
I have a drop down list and once it's submitted, I'd like to display it again with the selected value. This works but then I have the value listed twice.
<select name="position">
<option selected>Choose One</option>
<option value="director">director</option>
<option value="superintendent">superintendent</option>
<option value="administrator">administrator</option>
<option value="other">other</option>
</select>
After Posting Form:
<select name="position">
<option value="<%=Server.HTMLEncode(Request.Form("position"))%>" ><%=Server.HTMLEncode(Request.Form("position"))%></option>
<option value="director">director</option>
<option value="superintendent">superintendent</option>
<option value="administrator">administrator</option>
<option value="other">other</option>
</select>
Thanks