How to keep all the POST information while redirecting in PHP?

后端 未结 6 1650
感动是毒
感动是毒 2020-12-03 18:30
header(\'Location: \' . $uri);

This will miss all the $_POST information.

6条回答
  •  再見小時候
    2020-12-03 19:12

    If you perform a redirect the post will be lost and a GET will occur.

    You could save your POST in a SESSION or encode it in the GET (as query string)

提交回复
热议问题