I have a site where you can submit data into the db. Everything works fine but sometimes when I click to submit it takes long time. I noticed that some people try to click submit a couple of times while it is still loading and this way they insert the same entry more times in the database.
What is the solution for this problem?