Solving the Double Submission Issue

后端 未结 7 1032
暖寄归人
暖寄归人 2020-12-01 03:06

I would like to see how Web Developers avoid the double submission problem. So basically my understanding of the problem is as follows:

Double submission occurs whe

7条回答
  •  自闭症患者
    2020-12-01 03:29

    If the form has an intention of providing an interface for saving some data in server dbms, you may use special revision field that is mandatory for submitted data. A check whether or not the submitted revision matches that of the latest version of the data in the database (or is that of a new piece of data to be inserted), could provide you with good control of what to do if several submits are made in sequence.

提交回复
热议问题