when posting to a database, i dont sit on the page that handles the query, as it can result in multiple duplicate posts to the database. after you've gone through your post query, redirect to a "thanks for your submit" page, and that should stop refreshing annoyance. just use a header("location: ....");