pickab00
278
11
Laravel

How to stop form from submitting twice

Posted 2 months ago by pickab00

I have an app built from laravel and I hosted it today. One of the users called me today saying that he entered a data twice (with different id's). So there was double entry. The reason for this was that the internet went off while he was filling up the details and he tapped the submit button. Now the 'no internet' error on chrome displayed and once the internet was back up, he refreshed it 3 times and the data was entered 3 times. He thought that he was still on the form filling view so he refreshed 3 times. Now how can I prevent this from happening? Is this possible?

Please sign in or create an account to participate in this conversation.