If a POST request is sent to my webpage, I want to redirect them to my error page.
I use this code:
header('Location: http://www.example.com/error/', true, 307);
Visitors get this error:
This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?
I do NOT want any POST data to be submitted or re-submitted. I do not want to allow visitors to do that.
How can I redirect a user without giving them the option to re-post data?