Trying To Understand The Post/redirect/get Design Pattern (implemented With Php)
All, Sorry in advance - I'm not a PHP expert or knowledgeable in design patterns, so this question might be a little basic... Anyway, I'm working on a web app that will require a l
Solution 1:
Post Redirect Get comes in to play to stop a user resending their POST data if they refresh the page they've been redirected to after submitting a form. When you want to implement a PRG, you should set the HTTP header code to 303 like this:
header('Location: level1.php', 303);
Post a Comment for "Trying To Understand The Post/redirect/get Design Pattern (implemented With Php)"