Redirect to new page w/ POST data (PHP/Zend)

前端 未结 6 541
青春惊慌失措
青春惊慌失措 2020-12-06 10:02

I\'m trying to figure out how to redirect to a new page (different application, controller, action) and maintain the current POST data.

My app is validating the POST

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 10:49

    Because the client handles the redirection after the server's response I don't think you can do much about this. Firefox for example asks the user whether he/she wants to resend the POST data to the new location or not.

    A nasty solution would be to fill and return a HTML form and auto-submit it with JavaScript. :/

提交回复
热议问题