First type: is marked with flag. The following code sets the checkSubmitFlg flag:
Because the program source code conflicts with the WIN2000 registry, an invalid page will appear after the post is sent. As a result, there are many non-malicious duplicate posts in the forum. Later I came up with a way to use JS to avoid repeated submissions. Here is part of the source code:
Using this code, the number of duplicate posts in the forum has been significantly reduced. However, there is a disadvantage. The detection will not work after refreshing once. The advantage is that it uses JS detection and does not require additional permission support. As for the effect, it depends on whether you use it or not. It’s up to you (it’s best to add detection to both the front-end and back-end)