A页面中包含IFRAME页面为B,A提交到C.ASP,在C中如何读取B中的radio字段????
时间:2007-02-07 12:06:15浏览:75258
a.asp
*********
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<script language="javascript">
<!--
function click1()
{
for(i=0;i<window.parent.B.form1.BMessage0.length;i++)
{
if(window.parent.B.form1.BMessage0[i].checked==true) {document.all.BMessage.value=window.parent.B.form1.BMessage0[i].value}
}
}
//-->
</script>
</HEAD>
<BODY>
<form name="form1" method="post" action="C.asp">
<iframe id="B" width=100% height=100 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0
scrolling=no src="b.asp"> </iframe>
<div align="center">
<p>A.Message :
<input type="text" name="AMessage" size="30">
</p>
<p>
<input type="submit" name="Button" onclick="javascript:click1();" value="Button" style="cursor:hand">
</p>
</div>
<input type="hidden" name="BMessage">
</form>
</BODY>
</HTML>
**********************
b.asp
**********************
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form name="form1" method="post" action="c.asp">
<div align="center">B.Message:
<input type="radio" name="BMessage0" value="radio1" checked><input type="radio" name="BMessage0" value="radio2">
</div>
</form>
</BODY>
</HTML>
**********************
c.asp
**********************
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
AMessage=Request("AMessage")
BMessage=Request("BMessage")
Response.Write "A.Message---"& AMessage & "<br>"
Response.Write "B.Message---" & BMessage
%>
</BODY>
</HTML>
上一篇:集成网卡不可靠!
下一篇:随便写写
*********
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<script language="javascript">
<!--
function click1()
{
for(i=0;i<window.parent.B.form1.BMessage0.length;i++)
{
if(window.parent.B.form1.BMessage0[i].checked==true) {document.all.BMessage.value=window.parent.B.form1.BMessage0[i].value}
}
}
//-->
</script>
</HEAD>
<BODY>
<form name="form1" method="post" action="C.asp">
<iframe id="B" width=100% height=100 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0
scrolling=no src="b.asp"> </iframe>
<div align="center">
<p>A.Message :
<input type="text" name="AMessage" size="30">
</p>
<p>
<input type="submit" name="Button" onclick="javascript:click1();" value="Button" style="cursor:hand">
</p>
</div>
<input type="hidden" name="BMessage">
</form>
</BODY>
</HTML>
**********************
b.asp
**********************
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form name="form1" method="post" action="c.asp">
<div align="center">B.Message:
<input type="radio" name="BMessage0" value="radio1" checked><input type="radio" name="BMessage0" value="radio2">
</div>
</form>
</BODY>
</HTML>
**********************
c.asp
**********************
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
AMessage=Request("AMessage")
BMessage=Request("BMessage")
Response.Write "A.Message---"& AMessage & "<br>"
Response.Write "B.Message---" & BMessage
%>
</BODY>
</HTML>
上一篇:集成网卡不可靠!
下一篇:随便写写
- Linux文章
- PHP文章
- 随机文章
- Linux中的find(-atime...
- mysql的expire_logs_...
- PHP 扩展 libsodium s...
- Linux下利用find和cp实现筛...
- 使用mysqldump命令导出备份m...
- Linux系统如何设置开机自动运行脚...
- Linux上实现秒级执行的定时任务
- shell echo -e 颜色输出
- Linux下通过grep查找指定的进...
- 解决执行脚本报syntax erro...
发表评论
昵称: 验证码: