select name="mainmenu" size="1" onchange="location.href='?field='this.value">
<option value=0>请选择……</option>
<%while not rs1.eof%>
<option value="<%=rs1("产品型号")%>"><%=rs1("产品型号")%></option>
<%rs1.movenext
Set rs=Server.CreateObject("ADODB.Recordset")
aa=request.QueryString("field")
response.Write(aa)
typ=request.QueryString("sel")
sql="select * from lingbujian where 车型='"&aa&"' and 零部件名称='"& typ &"'"
rs.Open sql,Conn,1,1
为什么我的aa变量无法取到下拉菜单的值,谢谢!
------解决方案--------------------------------------------------------
onchange="location.href='result.asp?field='+this.value+'&sel='+sel.value"