If the form is already submitted and the user tries to refresh the webpage then the browser will attempt to resubmit the form.
If you are allowing the user to fill and submit the form for insert data. In this case, if the user refreshes the page then the data is reinserted into the MySQL database table if some action does not perform for preventing it.
In this tutorial, I show you some ways by using which you can avoid the page resubmit.