dongxun6690 2009-01-07 18:14
浏览 65
已采纳

如果您使用POST请求转到GET样式网址会发生什么?

Let's say I have a page called display.php and the user is viewing display.php?page=3. I want to allow the user to do an action like voting via a POST request and then bring them back to the page they were on. So, If I do a POST request to display.php?page=3 would the page information also be available to the script?

  • 写回答

3条回答 默认 最新

  • duancan8382 2009-01-07 18:40
    关注

    The simple answer is 'yes'. You can use a GET-style URL as the submission URL for a POST form. PHP will have both the POST and GET information available to it in the usual ways when the form is submitted.

    This is not to say that you should do this, but it will work.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?