::::救急如何在页面之间传递值 100分

GuoSenLin 2005-04-17 02:14:56
1.ASP
2.ASP

两个页面 1里面有5个选项 选择的不同 下一页进入到2页面里 会影响到 2页面里显示内容的不同

这个传递进来的值 在2页面里不能够显示

而且不能用 COOKIE 也不能够使用数据库 这个功能怎么才能完好的实现?
...全文
96 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
GuoSenLin 2005-04-17
  • 打赏
  • 举报
回复
结贴
GuoSenLin 2005-04-17
  • 打赏
  • 举报
回复
PAGE2写错了
set selec=request("selec")
pla18sep 2005-04-17
  • 打赏
  • 举报
回复
<!--page1.asp-->
<form name="form1" method="post" action="Page2.asp">
<p>
<label>
<input type="radio" name="selec" value="1" checked>
单选1</label>
<br>
<label>
<input type="radio" name="selec" value="2">
单选2</label>
<br>
<label>
<input type="radio" name="selec" value="3">
单选3</label>
<br>
<label>
<input type="radio" name="selec" value="4">
单选4</label>
<br>
<label>
<input type="radio" name="selec" value="5">
单选5</label>
<br>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit" value="重置">
</p>
</form>
--------------------------------------------------------------------
<!-- page2.asp -->
<%
set selec
selec=request("selec")
if selec<>"" then '仅举例说明应用
'你的代码...
else
'你的代码...
end if
%>
---------------------------------------------------------------------

以上方法,
没有在第二页显示值,
没有使用 COOKIE 和 数据库,
完全满足题目要求!

----------- 接分吧!--------------------------------------------------
qiqunet 2005-04-17
  • 打赏
  • 举报
回复
也可定义页内公共变量:



<input name="re">

<script>
var aa=<%=Request.form("第二页选项名称")%>;
document.all.re.value=aa;
</script>


manmanchong 2005-04-17
  • 打赏
  • 举报
回复
在第2页用request来取得第1页传过来的参数。
fuzi83 2005-04-17
  • 打赏
  • 举报
回复
如楼上~~隐藏控件
joshua2005 2005-04-17
  • 打赏
  • 举报
回复
<input type="hidden" name="id" value="<%=sql("id")%>">
通过它来传递值,看看.

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧