如何将Frame中的Form中文本框值传给父Frame??

cjwcyc 2005-10-03 09:04:16
a.asp
++++++++++++++++++++++++++++++++
<%dim keyword
keyword=Request.QueryString("keyword")%>
<html>
<frameset rows="145,*" cols="*">
<frame src="b.asp" scrolling="no"/>
<frameset rows="50%, 50%">
<frame src="c.asp?keyword=<%=keyword%>" name="frame1"/>
<frame src="d.asp?word=<%=keyword%>" name="frame2"/>
</frameset>
</frameset>
<noframes></noframes>
</html>
++++++++++++++++++++++++++++++++
b.asp
+++++++++++++++++++++++++++++++++++++++++++
<body>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="4" >
<tr>
<td><table border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form" method="get" action="a.asp">
<tr>
<td width="380" ><input name="keyword" type="text" id="keyword2" size="60"></td>
<td width="70"><input name="提交" type="submit"></td>
</tr>
</form>
</td> </tr>
</table>
</body>
+++++++++++++++++++++++++++++++++++++++++
如何在B.ASP中单击提交时,将text中值传给a.asp
...全文
88 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
cjwcyc 2005-10-03
  • 打赏
  • 举报
回复
多谢谢
qiqunet 2005-10-03
  • 打赏
  • 举报
回复
<form name="form" method="post" action="a.asp" target="_top">



<form name="form" method="post" action="a.asp" target="_parent">


qiqunet 2005-10-03
  • 打赏
  • 举报
回复


另外,

将form的get方式改为post方式
<form name="form" method="post" action="a.asp">


qiqunet 2005-10-03
  • 打赏
  • 举报
回复
<%dim keyword
keyword=Request.form("keyword")%>

28,390

社区成员

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

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