I have a simple html form which submits to the database on submit click.
It’s working fine till here but after that when I refresh the page or page loads again,the values resubmit.How to rectify that?
I have a simple html form which submits to the database on submit click.
Share
After the form has been submitted, redirect to another page. Then refreshes will not matter.
See Post/Redirect/Get on Wikipedia for details on this pattern.