oh I see, your problem has nothing to do with code, but logic.
When you submit a form to itself via post, the browser will always give you that message if you try to reload. That's a browser thing. You can't do anything about that.
What you can do is post your form to a handler script. This script does what you need to do with the form data and then you send the data back to the page that submitted via get. If you need to pass data you send it in the url.