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

后端 未结 13 1249
时光说笑
时光说笑 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:38

    This breaks the basic browser user experience model...users should always be able to use the Refresh and Back buttons in their browser. Recommend that you fix your page another way.

    If you update your question to include the server language/platform/technology that you are using then someone might be able to suggest a solution.

提交回复
热议问题