如何將一個(gè)表單同時(shí)提交到兩個(gè)地方處理
更新時(shí)間:2006年10月09日 00:00:00 作者:
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>
<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>
相關(guān)文章
PHP個(gè)人網(wǎng)站架設(shè)連環(huán)講(二)
PHP個(gè)人網(wǎng)站架設(shè)連環(huán)講(二)...2006-10-10親密接觸PHP之PHP語(yǔ)法學(xué)習(xí)筆記1
親密接觸PHP之PHP語(yǔ)法學(xué)習(xí)筆記1...2006-12-12laravel學(xué)習(xí)教程之關(guān)聯(lián)模型
在PHP開發(fā)中,選擇合適的框架有助于加快軟件開發(fā),節(jié)約寶貴的項(xiàng)目時(shí)間,讓開發(fā)者專注于功能的實(shí)現(xiàn)上。今天我們來(lái)學(xué)習(xí)學(xué)習(xí)laravel中的關(guān)聯(lián)模型。2016-07-07用PHP實(shí)現(xiàn)登陸驗(yàn)證碼(類似條行碼狀)
用PHP實(shí)現(xiàn)登陸驗(yàn)證碼(類似條行碼狀)...2006-10-10PHP學(xué)習(xí)筆記之二 php入門知識(shí)
PHP學(xué)習(xí)筆記之二 php入門知識(shí)點(diǎn)小結(jié),學(xué)習(xí)php的朋友可以參考下。2011-01-01