Is it possible to send POST data with a PHP redirect?

前端 未结 10 2144
一个人的身影
一个人的身影 2021-02-14 05:04

Update: This is NOT a duplicate of How do I send a POST request with PHP?. The solutions there don\'t work for me, they just output the result of the request, I don\'t w

10条回答
  •  迷失自我
    2021-02-14 05:38

    AJAX could be use in this case.

    The form on mysite.com/pay points to gatewaysite. On submit you run a function which will call script.php. Only if script.php confirms that the data is correct, the form will be submitted.

提交回复
热议问题