So a form is submitted on my site, with form action equal to itself.
I want the user to be able to refresh the page without sending the same variables again.
I thought unset($_POST); would accomplish this for some reason it doesn’t is there another way to accomplish this?
No, unset($_POST) wont’ help you. As this array being populated from the browser request.
The common practice (and protocol requirement) is to use HTTP redirect to some (usually same) location.
A rough outline of a POST form handler in the same file is like this: