ASP 隐藏域传值
<formid="form2"name="form2"method="post"action="jiezhang.asp"><%setri=server.CreateOb...
<form id="form2" name="form2" method="post" action="jiezhang.asp">
<%
set ri=server.CreateObject("adodb.recordset")
sqli="select * from linshibiao where name='"&name&"'"
ri.open sqli,conn,1,3
if ri.eof or ri.bof then
response.Write("")
response.End
else
i=1
do while not ri.eof
i=i+1
%>
<input name="bianhao<%=i%>" type="hidden" value="<%=ri("bianhao")%>" />
<input name="pinpai" type="hidden" value="<%=ri("pinpai")%>" />
<input name="chuxiaojia" type="hidden" value="<%=ri("chuxiaojia")%>" />
<input name="geshu" type="hidden" value="<%=ri("geshu")%>" />
<input name="name" type="hidden" value="<%response.Write(name)%>" />
<%ri.movenext
loop%>
<input name="Submit2" type="image" value="提交" src="img/6.jpg" border="0" />
</form>
<%end if%>
-----------
然后我在另一个页里面接值
<%
bianhao1=request("bianhao1")
response.Write(bianhao1)
if bianhao1="" then
response.Write("1")
response.End
else
response.Write("2")
response.End
end if
%>
----------------
这样根本就没有值
--------------
我的意识是把等于 name的值通过 隐藏域传到第二页
然后把这个隐藏域进行添加 展开
<%
set ri=server.CreateObject("adodb.recordset")
sqli="select * from linshibiao where name='"&name&"'"
ri.open sqli,conn,1,3
if ri.eof or ri.bof then
response.Write("")
response.End
else
i=1
do while not ri.eof
i=i+1
%>
<input name="bianhao<%=i%>" type="hidden" value="<%=ri("bianhao")%>" />
<input name="pinpai" type="hidden" value="<%=ri("pinpai")%>" />
<input name="chuxiaojia" type="hidden" value="<%=ri("chuxiaojia")%>" />
<input name="geshu" type="hidden" value="<%=ri("geshu")%>" />
<input name="name" type="hidden" value="<%response.Write(name)%>" />
<%ri.movenext
loop%>
<input name="Submit2" type="image" value="提交" src="img/6.jpg" border="0" />
</form>
<%end if%>
-----------
然后我在另一个页里面接值
<%
bianhao1=request("bianhao1")
response.Write(bianhao1)
if bianhao1="" then
response.Write("1")
response.End
else
response.Write("2")
response.End
end if
%>
----------------
这样根本就没有值
--------------
我的意识是把等于 name的值通过 隐藏域传到第二页
然后把这个隐藏域进行添加 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询