下拉菜单跳转的问题
下面是我写的一段代码,实现的目的是,当选中下拉菜单中其中一项时跳转,可是结果没有跳转,希望大家帮我看看,为什么,谢谢response.write " <select name='guanlie' onChange='javascript:location=this.options[this.selectedIndex].value;'>"
sql="select mgzid from gxmgz_b where userid='"&userid&"'"
rs.open sql,conn,1,1
while not rs.eof
mgzid=rs("mgzid")
sql1="select mgzname from mgzb where mgzid='"&mgzid&"'"
rs1.open sql1,conn,1,1
response.write "<option value='admin_news_k.asp?vmgz="&mgzid&"'>"
response.write rs1("mgzname")
response.write "</option>"
rs1.close
rs.movenext
wend
rs.close
response.write "</select>"