如何将一个表单同时提交到两个地方处理
发布时间:2006-10-14 2:47:18   收集提供:gaoqian
form.submit中控制。。。。
<html>
<script language=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></form>

 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50