php - 来自 html 的多个操作?

标签 php html forms web paypal

我在网页上有一个 Paypal 按钮,可以将商品添加到购物篮。 我可以向 paypal 表单添加另一个操作,以便它会向我发送电子邮件确认以及执行“添加到购物车”的原始任务吗?

最佳答案

<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> 

关于php - 来自 html 的多个操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11602435/

相关文章:

html - 如何在 Bootstrap 轮播中调整 img 的大小?

html - <code> 元素的 css 样式属性是什么?

javascript - 如何在包含 <br> 作为换行符的段落中的多行上显示字符串值

html - Symfony2 : How to render an HTML5 number input type and accept float values in a form?

php - 从父函数访问重载函数中的变量

php - 仅删除特定字符之间的空格

php - 如果为空,如何使表单忽略密码字段(symfony2 表单)

mysql - 如何更新数据库中的无限表单字段表单?

php - SQL 查询查找所有两个单词组合

php - 使用 mysql 获取行检索值时出现问题