用js将form表单同时提交到两个不同页面的方法:
<script type="text/javascript">
function dosubmit(){
window.open('first.php?var1='+window.form.var1.value+'&var2='+window.form.var2.value);
window.open('second.php?var1='+window.form.var1.value+'&var2='+window.form.var2.value);
return false;
}
</script>
<form name=form onsubmit="return dosubmit();">
<input type=text name=var1><br />
<input type=text name=var2>
<br /><Input type=submit value="提交">
</form>
原文地址:http://www.corange.cn/archives/2009/11/3495.html
用js将form表单同时提交到两个不同页面的方法
最新推荐文章于 2021-06-08 20:40:24 发布
本文介绍了一种使用JavaScript实现表单数据同时提交到两个不同页面的方法。通过打开两个窗口并传递表单变量的方式,实现了数据的有效同步提交。
8331

被折叠的 条评论
为什么被折叠?



