Hi,
that way could work:
Change the action of your form script to PHP_SELF. Move the code for testing the submit and inserting the data into the database to the form script. After the data has successfully been inserted into the database, redirect the user to the index.php (or whatever the name of the home page script is) with e.g. header("Location: index.php"). Make sure that there is no output prior to calling header, you would get error messages otherwise.
That would ensure that the users won't post the data twice because subsequent refreshes would only refresh the index.php and not the form page.
One more:
If you want to prevent the users to post the form several times by clicking on submit several times because e.g. it takes some time to post the data, you can prevent this with a little bit of javascript.
Give the form a name e.g. <form name="myform".....
change the submit button from type="submit" to type="button" and add the following javascript code into the input tag:
onClick="this.disabled=true;document.forms.myform.submit();"
The button will be disabled after the first click and the form will be submitted afterwards.