如何将一个表单同时提交到两个地方处理(以 PHP 为例)
<script language=javascript>
function dosubmit()
{window.open('first.php?var1='+window.form1.var1.value+'&var2='+window.form1.var2.value);
window.open('second.php?var1='+window.form1.var1.value+'&var2='+window.form1.var2.value);
return false;
}
</script>
<form name=form1 onsubmit="return dosubmit();">
<input name=var1>
<input name=var2>
<input type=submit>
</form>
上一篇:用 PHP 获得浏览器信息?
下一篇:网页文字颜色的搭配技巧