I ran into some kind of fictitious problem.
My site has an order form (simple html form), and I noticed that from time to time I get double commands.
I realized that if I pressed the submit button several times (before loading the action page), I had as many commands as I pressed.
So I wonder if there is a simple solution to make the form submission asynchronous?
thank
PS I added a jQuery UI dialog box to send "wait please ...", but I get two more commands.
UPDATE
As GeoffAtkins suggested:
- disable sending after displaying a dialog box
- use a unique form token (since it has already been added by Symfony) Do not use a Symfony token as a unique form token, since it always matches the current session. Use just random or something like that.
source
share