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

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

This will miss all the $_POST information.

6条回答
  •  广开言路
    2020-12-03 18:56

    I do use my own simple method.

    Just think very logical! For example if you use a text attribute which you want to keep the value of, you can use:

    
    
    
    
    //And if you want to use this method for a radio button, you can use: />

提交回复
热议问题