Implementing a few lines of ASP code to prevent forms from being submitted
Author: Liao far
In many cases, it is necessary to prevent the same form from being submitted many times. Many people's implementation methods are more complicated (the number of codes exceeds dozens of lines !!) The following provides a method of simply use a few lines of code, easy to implement Prevent users from refreshing multiple submission forms and uses the return button repeatedly to submit a form.
Form file FormTest.asp
<% Randomize 'initial random seed
Num1 = rND () 'Generate random number Num1
Num1 = int (26 * num1) 65 'Modify the range of NUM1 to make it a ASCII code in the A-Z range to prevent the form of a single name
Session ("antry") = "test" & chr (num1) "Generate random strings
%>