慕田峪7331174
2022-05-19 16:15:00
注冊頁面, <form id="registerform" name="registerform" action="a.php method="post" ><input type="text" id="username" name="username" value="" /><input type="text" id="username" name="username" value="" /><input type="submit" id="registersubmit" name="registersubmit" value="注冊新用戶" onclick="<!--{if $register_rule}-->if(!checkClause()){return false;}<!--{/if}-->ajaxpost('registerform', 'register');" tabindex="6" /></form> 這個沒問題, 但是,我想提交的同時 post到 b.php 該怎么寫 ?
2 回答

狐的傳說
TA貢獻(xiàn)1804條經(jīng)驗 獲得超3個贊
需要用js來做提交
<script language="javascript">
function dosub(){
window.open('a.php?var1='+window.registerform.username1.valule+'&var2='
+window.registerform.username2.value);
window.open('b.php?var1='+window.registerform.username1.valule+'&var2='
+window.registerform.username2.value);
return false;
}
</script>
<form name="registerform" onsubmit="return dosub()"><input type="text" name="username1" value="" /><input type="text" name="username2" value="" /><input type="submit" id="registersubmit" name="registersubmit" value="注冊新用戶" </form>
添加回答
舉報
0/150
提交
取消