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

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

This will miss all the $_POST information.

6条回答
  •  伪装坚强ぢ
    2020-12-03 19:06

    if u want to carry forward your POST data to another pages ( except the action page) then use

    session_start();
    $_SESSION['post_data'] = $_POST;
    

提交回复
热议问题