I have some post form. On click submit button, turn to another page. I need refresh page once time, if some $_POST variable exists.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the POST/Redirect/GET pattern.
A
POSTrequest is defined to update some state on the server side. AGETrequest is for requesting a resource with no side effects. So, make thePOSTto update your server, then send a redirection header to aGETpage.