实现asp2级联动菜单 后获取子菜单值的问题!大侠们帮忙
类似于省-城市的二级联动功能已经实现.但是用request( "城市 ")接收城市 菜单/列表值时 接收到的是省的值. 怎么解决啊.
<script language = "JavaScript ">
subcat=new Array();
<%
Dim i
i=0
set rs2=server.createobject( "adodb.recordset ")
sqltext= "select * from [shopxp_stype] "
rs2.open sqltext,conn,1,1
do while not rs2.eof
%>
subcat[ <%=i%> ]=new Array( " <%=rs2( "shopxpse_name ")%> ", " <%=rs2( "shopxpbe_id ")%> ", " <%=rs2( "shopxpse_id ")%> ");
<%
i=i+1
rs2.movenext
loop
rs2.close
%>
function changelocation(locationid)
...{
document.myform.shopxpse_id.length = 0;
var locationid=locationid;
var i;
for (i=0;i <subcat.length; i++)
...{
if (subcat[i][1] == locationid)
...{ //这句不是很理解
document.myform.shopxpse_id.options[document.myform.shopxpse_id.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</script>
<body>
<form name= "myform " method= "post " action= "adproductshopxp_do.asp " OnSubmit= "return checkkk() " >
<table width= "90% " border= "0 " cellpadding= "0 " cellspacing= "5