I am currently facing issue, the user clicks a time on the Button,then the entry get inserted two times in database.
How can I solve this
I am currently facing issue, the user clicks a time on the Button,then the entry get inserted two times in database.
How can I solve this
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JoshiPosted Apr 4, 2024, 7:26 AM
Hello
There can be several possibilities to get double entries in the database. please check the below points.
Thanks
Vishal Joshi
Jayraj ChhayaPosted Apr 2, 2024, 9:54 AM
If you call your API using ajax then add the below the line.
Ishika TiwariPosted Apr 2, 2024, 9:24 AM
it's important to ensure that the button remains disabled only for the duration necessary to prevent double submissions