查看完整版本: 将一个表单提交给两个页面

Nothing 2005-8-15 16:46

将一个表单提交给两个页面

<html>

<head>
<meta name=vs_defaultClientScript content="JavaScript">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>

<script id=clientEventHandlersJS language=javascript>
<!--

function b1_click() {
        form1.action="1.php";
        form1.target="i1";
        form1.submit();
        form1.action="2.php";
        form1.target="i2";
        form1.submit() ;
return false;
}
//-->
</script>
</head>

<body>
<IFRAME name="i1" width="243" height="208"></IFRAME>
<IFRAME name="i2" width="243" height="208"></IFRAME>
<form method=post action="" ID="form1" target="" language=javascript >
<input type=text name=t1>
<input type=submit onclick="b1_click()">

</form>
</body>

</html>

yanguang.lan 2005-9-3 22:13

很好的例子,值得学习。

Breanna6998 2005-12-25 16:54

Bedazzling

Your remarks are so pointy and enlightened that I almost lost my sight. NOT.
页: [1]
查看完整版本: 将一个表单提交给两个页面