asp中甲页面如何调用乙页面的变量值?

来源:百度知道 编辑:UC知道 时间:2024/05/23 17:43:43
第一个页面是个表格,利用表单把客户端输入的数值提交进来
<form id="form_add" name="form_add" method="post" action="add2.asp" onsubmit="return check(this)">
<table width="715" height="208" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#000000">
<tr>
<td height="40" colspan="2"><div align="center"><span class="STYLE1">登记系统</span></div></td>
</tr>
<tr>
<td width="124" height="40"><div align="center"><span class="STYLE3">起始时间</span></div></td>
<td width="578"><label>
<input name="beginday" type="text" class="STYLE3" id="beginday" />
&

<form id="form_add" name="form_add" method="post" action="add2.asp" onsubmit="return check(this)">
每个表单对应了一个处理页面,action="add2.asp"提交后,只有add2.asp可以接受到参数,别的页面当然调用不了啊~
这个参数要在浩多页面都想用的话,就保存在session里吧

你获取信息的页面是add2.asp吗?

如果是的话我没有发现有什么错,建议把onsubmit="return check(this)"删了试试,可能这个函数把你的数据清空了。