打印

[asp] 下拉菜单问题

主的:
<form id="form4" name="form4" method="post" action="">
                                                <select name="DropDownList_Game" id="DropDownList_Game" style="width:165px;" onchange="javascript:submit()">
                                                                                    <%
set rs=conn.execute("select * from pclass where show=1 and  ParentID=0 order by classname asc")
do while not rs.eof
%>
              <option value="<%=rs("id")%>"><%=rs("classname")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
       </select>
                                                
                                            </form>
次的:
<select name="DropDownList_GameServer"  id="DropDownList_GameServer" style="width:150px;">
<%
DropDownList_Game=request.Form("DropDownList_Game")
set rqs=conn.execute("select * from pclass where show=1 and parentid="&DropDownList_Game&"")
do while not rqs.eof
%>
<option value="<%=rs("id")%>"><%=rs("classname")%></option>
<%
rqs.movenext
loop
rqs.close
set rqs=nothing
%>
       </select>

我想让他选择主的后,次的也变化,但我这样做网页打不开,请高手们指点下。
在同一页面的,
晕了
楼主想说的是二级联动的问题吧

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
是的

TOP


就是这样的

TOP

做不好

TOP

给点见议呀

TOP