I have a paypal button on webpage that adds item to shopping basket. Can I add another action to the paypal form so that it will send me an email confirmation as well as do the orginal task of 'adding to basket'?
问问题
390 次
1 回答
2
<script type="text/javascript">
function submitTwice(f){
f.action = 'first.php';
f.target='ifr1';
f.submit();
f.action = 'second.php';
f.target='ifr2';
f.submit();
}
</script>
和形式:
<form method="post">
<input type="button" value="Send" onsubmit="submitTwice(this.form)">
</form>
于 2012-07-22T17:33:58.660 回答