从下拉列表中选择一项再点提交后下拉列表显示的一直是第一项,怎样让他显示选的那项?
------解决方案--------------------
<%
sel = request.form( "sel ")
if sel = " " then sel = "1 "
%>
<form action= "post ">
<select id= "sel " name= "sel ">
<option value= "1 " <%if sel = "1 " then response.write "selected "%> > 1 </option>
<option value= "2 " <%if sel = "2 " then response.write "selected "%> > 2 </option>
<option value= "3 " <%if sel = "3 " then response.write "selected "%> > 3 </option>
</select>
<input type= "submit " value= "submit ">
</form>
===================
未验证,自己测试