在同一个页面可以得到下拉菜单值吗?

来源:百度知道 编辑:UC知道 时间:2024/06/25 19:03:18
如题,不提交,下拉菜单值变化,同一个页面的值也变化,可以做到吗?
我是用的asp。。。。。还是感谢

我这个就是 ASP生成的。你要ASP代码吗?这两个语言是可以嵌套的嘛。,以下就是。
<%
sub l_class()
set classall = conn.execute("select * from class where c_level=1 order by c_type1 asc")
if classall.eof then
Response.Write("<c_type1 value='无栏目选择' selected='selected'></c_type1>"&vbcrlf)
set classall=nothing
exit sub
end if
while not classall.eof
Response.Write("<c_type1 value='"&classall("c_type1")&"."&classall("c_name")&"'>"&vbcrlf)
set class2=conn.execute("select * from class where c_type1="&classall("c_type1")&" and c_level=2 order by c_type2 asc")
if classall.eof then
Response.Write("<c_type2 value='无栏目选择' selected='selected'></c_type2>"&vbcrlf)
set class2=nothing
exit sub
end if
while not class2.eof
Response.Write("<c_type2 value='"&