gpt4 book ai didi

php - 如何通过 PHP 触发表单操作?

转载 作者:行者123 更新时间:2023-11-28 03:15:22 24 4
gpt4 key购买 nike

<分区>

我有一个可以触发 Paypal 或其他链接的表格。

如何通过 PHP 触发这些操作?

HTML:

<form action="myphp.php" method="POST />
<input type="submit" value="paypal" name="action1" />
<input type="submit" value="other" name="action2">
</form>

myphp.php:

if($_POST["action1"]) {
//https://www.paypal.com/cgi-bin/webscr should trigger here
}
if($_POST["action2"]) {
//https://www.someotherwebsite.com/pay should trigger here
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com