新微赢技术网
标题:
[求助]关于asp变量传递的问题
[打印本页]
作者:
秋燕子_児
时间:
2010-1-20 02:28
标题:
[求助]关于asp变量传递的问题
这是代码,总的意思就是,选择了上级机构,自动刷新上级机构的对帐账号号
选择了下级机构,自动刷新下级机构的对帐账号(自动刷新用的是onChange="javascript:submit()",因为用java语言做这样的二级菜单我不会)
但是当我点击下面的 “增 加”按钮时,顶端的读取变量语句
jgbm_1=request.form("jgbm_1")
jgbm_2=request.form("jgbm_2")
dzzh_1=request.form("dzzh_1")
dzzh_2=request.form("dzzh_2")
却不能获得数据,但是用自动刷新,例如点击了上级机构编码,则就可以户的 jgbm_1等数据
不知道是为什么,请指教!为盼!!!!
<%
jgbm_1=request.form("jgbm_1")
jgbm_2=request.form("jgbm_2")
dzzh_1=request.form("dzzh_1")
dzzh_2=request.form("dzzh_2")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<title>系统内往来对账系统---管理</title>
<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >
<br>
<form name="admin_user" action="admin_dzgx_add.asp" method=post>
<table width="100%" border="0" cellspacing="0" cellpadding="3" align=center class="tableBorder">
<tr><th height="23" class="tableHeaderText"><b>增加对账关系管理</b></th></tr>
<tr><td><div align="center"><center>
<table cellSpacing="0" cellPadding="0" border="1" width="99%" bordercolor="#89ACF5" style="border-collapse: collapse">
[知识问答
ωωω.χiuGoo.сom
]
<tr>
<td class="row" width="25%" align="right">上级机构编号:</td>
<td class="Forumrow" width="75%" align="left">
<%sql="select * from dzjg order by jgbm"
set list_dzjg_rs=server.createobject("adodb.recordset")
list_dzjg_rs.open sql,conn,1,1
if not list_dzjg_rs.eof then%>
<select name="jgbm_1" size="1" onChange="javascript:submit()">
<%do while not list_dzjg_rs.eof%>
<option value="<%=list_dzjg_rs("jgbm")%>" <%if list_dzjg_rs("jgbm")=jgbm_1 then%> selected <%end if%>><%=list_dzjg_rs("jgbm")%>==><%=list_dzjg_rs("jgmc")%></option>
<%list_dzjg_rs.movenext
loop%>
</select>
<%else%>
<select name='jgbm_1' >
<option value="all">请选择上级机构......</option>
</select>
<%end if
list_dzjg_rs.close
set list_dzjg_rs=nothing%>
</td>
</tr>
<tr>
<td class="row" width="25%" align="right">上级机构对账账号:</td>
<td class="Forumrow" width="75%" align="left">
<%sql="select * from dz_zh where bz=0 and jgbm='"&jgbm_1&"' order by jgbm"
set list_dzzh_rs=server.createobject("adodb.recordset")
list_dzzh_rs.open sql,conn,1,1
if not list_dzzh_rs.eof then%>
<select name='dzzh_1'>
<%do while not list_dzzh_rs.eof%>
<option value="<%=list_dzzh_rs("zh")%>"><%=list_dzzh_rs("zh")%>==><%=list_dzzh_rs("zhmc")%></option>
<%list_dzzh_rs.movenext
loop%>
</select>
<%else%>
<select name='dzzh_1' >
<option value="all">请选择上级机构对账账号......</option>
</select>
<%end if
list_dzzh_rs.close
set list_dzzh_rs=nothing%>
</td>
</tr>
<tr>
<td class="row" width="25%" align="right">下级机构编号:</td>
<td class="Forumrow" width="75%" align="left">
<%sql="select * from dzjg order by jgbm"
set list_dzjg_rs=server.createobject("adodb.recordset")
list_dzjg_rs.open sql,conn,1,1
if not list_dzjg_rs.eof then%>
<select name='jgbm_2' onChange='javascript:submit()'>
<%do while not list_dzjg_rs.eof%>
<option value="<%=list_dzjg_rs("jgbm")%>" <%if list_dzjg_rs("jgbm")=jgbm_2 then%> selected <%end if%>><%=list_dzjg_rs("jgbm")%>==><%=list_dzjg_rs("jgmc")%></option>
<%list_dzjg_rs.movenext
loop%>
</select>
<%else%>
<select name='jgbm_2' >
<option value="all">请选择下级机构......</option>
</select>
<%end if
list_dzjg_rs.close
set list_dzjg_rs=nothing%>
</td>
</tr>
<tr>
<td class="row" width="25%" align="right">下级机构对账账号:</td>
<td class="Forumrow" width="75%" align="left">
<%sql="select * from dz_zh where bz=0 and jgbm='"&jgbm_2&"' order by jgbm"
set list_dzzh_rs=server.createobject("adodb.recordset")
list_dzzh_rs.open sql,conn,1,1
if not list_dzzh_rs.eof then%>
<select name='dzzh_2' >
<%do while not list_dzzh_rs.eof%>
<option value="<%=list_dzzh_rs("zh")%>"><%=list_dzzh_rs("zh")%>==><%=list_dzzh_rs("zhmc")%></option>
<%list_dzzh_rs.movenext
loop%>
</select>
<%else%>
<select name='dzzh_2' >
<option value="all">请选择下级机构对账账号......</option>
</select>
<%end if
list_dzzh_rs.close
set list_dzzh_rs=nothing%>
</td>
</tr>
</table>
</center>
</div>
</td></tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="3" align=center class="tableBorder">
<tr><td valign=middle width="30%"><p align="center">
<input NAME="Submit" type="button" VALUE="增 加" onclick="javascript:window.open('admin_dzgx_add_gl.asp?ok=1','_self','')" style="color: #000000; font-family: 宋体; font-size: 9pt; height: 18px; position: relative; border: 1px solid #000000; background-color: #F6F6F6; float:center">
</td></tr>
</table>
</form>
</body>
</html>
欢迎光临 新微赢技术网 (http://bbs.weiying.cn/)
Powered by Discuz! X3.2