How do I stop the Back and Refresh buttons from resubmitting my form?

后端 未结 13 1253
时光说笑
时光说笑 2020-11-27 15:16

I am doing web development.

I have a page to do with credit card, which when user click \"refresh\" or \"Back\", the transaction will be performed one more time, wh

13条回答
  •  渐次进展
    2020-11-27 15:31

    You shouldn't try to "block" these actions. What you should do is make sure that nothing happends when someone "double submits" the form.

提交回复
热议问题