A
A
ART42021-09-27 14:51:08
PHP
ART4, 2021-09-27 14:51:08

Accept form data once?

Good afternoon, there is an ActiveForm form from (YII2). When you click on the button, the data is sent and a delay is obtained until the redirect to the stub. And during this delay, they can click many times and many records will be written to the database at once, how is this solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
ForSureN1, 2021-09-27
@ART4

Catch the moment of submitting the form and hang at this moment on the button pointer-events: none

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question