I have 3 pages:
index.php: form, method = post, action = "show.php".
functions.php: function with form processing (adding to database).
show.php: table filled with data which is entered in form and with data fetched from database.
show.php includes functions.php
The problem is the Confirm Form Resubmission message appearing when refreshing page F5 in show.php.
Redirecting back to index.php using header() and exit() leads to infinite loop.
Method 2: Post + Redirect to self doesn't work for me.
Form on Page1 posts the data to Page2, Page2 processes the data and does what needs to be done, and then it does a HTTP redirect on itself. This way the last "action" the browser remembers is a simple GET on page2, so the form is not being resubmitted upon F5.
If PRG pattern can help resolving this issue what steps do I need to do in this case? If no, what can you advice to do?