Prevent form from being submitted twice

后端 未结 4 1642
孤城傲影
孤城傲影 2020-12-10 06:23

I have a simple php form, like this:

the problem is that if

4条回答
  •  死守一世寂寞
    2020-12-10 06:25

    In the case of user having lag and he hits the submit button a few times, then maybe use client side mechanism, use js to set the submit button to disabled once it is clicked. but will have to display message saying roughly something like, "sending message ... if no response pls reload page and retry".

提交回复
热议问题