0

我在下面有这个表格,用于提交到支付网关。问题是,一旦我点击按钮,它就不会进入第三方支付页面。但是,如果我第二次点击,那么它只会通过吗?为什么呢?

<form method="post" action="" name="payment">
<input type="submit" name="submit"/>
</form>


function PAYMENT_FORM($price, $username, $useremail, $usercontact, $desc, $desc2){
      //Content of the function 
}

if (isset($_POST['submit'])) {
    echo PAYMENT_FORM($cart->total, $user['firstname']." ".$user['lastname'], $user['email'], $user['telephone'], $desc, $desc2);
}
4

0 回答 0