select选框里选项调取数据库

来源:互联网 发布:乐知英语怎么收费 编辑:程序博客网 时间:2024/05/17 03:42
<select size="1" name="good" onChange="javascript: window.location.href='huizong.asp?type=' + this.options[this.selectedIndex].value">
        <%set rs=conn.execute("select * from mm order by id desc")
Do while not rs.eof%>
<option value="<%=rs("Tt")%>" ><%=rs("Tt")%></option>
<%rs.movenext
loop
rs.close:set rs=nothing%>
        </select>  




选择后选框里居然显示不了所选的科目,但不影响功能。
0 0