Preventing double HTTP POST

前端 未结 11 813
死守一世寂寞
死守一世寂寞 2020-12-29 05:23

I have made a little app for signing up for an event. User input their data and click \"sign me in\".

Now sometimes people are double in the database, the exact sam

11条回答
  •  萌比男神i
    2020-12-29 06:05

    A user-side solution is to disable the submission button via Javascript after the first click.

    It has drawbacks, but I see it often used on e-commerce websites.

    But, it won't never replace a real server-side validation.

提交回复
热议问题