账号通
    

账号  

密码  

2859

查看

6

回复
主题:[讨论]提交表单时传送文本框数据到另一个页面 [收藏主题] 转到:  
cyy11 当前离线

169

主题

5

广播

1

粉丝
添加关注
级别:一年级

用户积分:3681 分
登录次数:80 次
注册时间:2009/1/8
最后登录:2018/10/14
cyy11 发表于:2011/8/17 7:46:39   | 显示全部帖子 查看该作者主题 楼主 
科汛在线商城系统(NET)

a.asp



<form id="form1" name="form1" method="post" action="b.asp">

<input type="text" name="name1" id="textfield" />

<input type="submit" name="button" id="button" value="提交" />

<input type="reset" name="button2" id="button2" value="重置" />





b.asp



<form id="form1" name="form1" method="post" action="要提交的目标网页">

<input name="name2" type="text" id="textfield" value="<%=request("name1")%>"/>

</form>





就可以了!这是最常见的处理方法

用sesion也可以的,但表单提交值一般不提倡。sesion有其他用途。

 
,
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.04688秒 powered by KesionCMS 9.0