如何將一個表單同時提交到兩個地方處理
更新時間: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函數(shù)之日期時間函數(shù)date()使用詳解
date()函數(shù)是我們在php開發(fā)中常碰到并且會使用到的一個日期函數(shù),下面我來給大家介紹date()函數(shù)的一些基本扮靚和方法,有需要了解的朋友可進入?yún)⒖?/div> 2013-09-09
php學(xué)習(xí)筆記(三)操作符與控制結(jié)構(gòu)
好久沒更新了,這段時間挺忙的。下面繼續(xù)php學(xué)習(xí) 之 操作符與控制結(jié)構(gòu);2011-08-08
php基礎(chǔ)教程 php內(nèi)置函數(shù)實例教程
其實這些內(nèi)容在php手冊就可以學(xué)習(xí)的 但是很多php入門初學(xué)者對php手冊不知道怎么看 看也看不懂2012-08-08
用Socket發(fā)送電子郵件(利用需要驗證的SMTP服務(wù)器)
用Socket發(fā)送電子郵件(利用需要驗證的SMTP服務(wù)器)...2006-10-10
一個PHP操作Access類(PHP+ODBC+Access)
一個PHP操作Access類(PHP+ODBC+Access)...2007-01-01最新評論

