How to do two POST requests for visitors with JS disabled on one submit button?

前端 未结 4 1195
猫巷女王i
猫巷女王i 2021-01-15 08:05

I got help with solving a problem in this thead: Redirect with POST data. Now that I decided that the whole site and even this function must work when JS is disabled I need

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-15 08:33

    Use CURL extension to post request to payment server when processing your user's request on server-side.

    If your user must be redirected to some external web site, than save needed data first and then redirect him using header() function. Keep in mind that in this case you wouldn't be able to use POST method for making request to remote payment server.

提交回复
热议问题