I have a php page with a form. When user submits the page then the database is updated. The problem comes when after submit user hits refresh button of browser. This refresh causes the form to be submitted again.
As a fix I was thinking if we can empty $_POST array so that refresh would not resubmit the page. Do you think it's a good approach for solving this situation or do you have any other better idea.