do Codeigniter 3.0.0 preventing from double submit automatically or not? Is there any helper/library for this? I looked at form validation and form helper, but there is nothing about it.
Thank you very much.
do Codeigniter 3.0.0 preventing from double submit automatically or not? Is there any helper/library for this? I looked at form validation and form helper, but there is nothing about it.
Thank you very much.
No, CI 3 doesn't handle double form submission. What you have to do is to submit your page and redirect to another one after successfull submission.
Now, let's say your user clicks two or three times because maybe his mouse is not working right, or his connection is too slow... then you can also put a code in the form and if the form gets submitted then save that code with it's timestamp and prevent future submission for that code.
Periodically, with cron, you can erase saved form codes that are older than 1 minute or so.
Hope that helps.