The implementation method of uppercase digital verification code is as follows:
<form method=post name=myform>
Name:<input type=text name=name value=><br>
Student ID: <input type=text name=num value=><br>
. . . :<input type=text name=aaa value=><br>
. . . :<input type=text name=bbb value=><br>
Verification code: <img src=vcode/c.asp onclick=this.src=this.src /><input type=text size=5 name=C autocomplete=off style=ime-mode:disabled; value=>
<input type=submit value=submit>
</form>
asp code:
Copy the code code as follows:
<%
c = Request.form(c)
'If you can enter lowercase numbers, please comment out the following three lines
for ii = 0 to 9
c = Replace(c,Cstr(ii),)
next
c = Replace(c,zero,0)
c = Replace(c,一,1)
c = Replace(c,two,2)
c = Replace(c,three,3)
c = Replace(c,four,4)
c = Replace(c,five,5)
c = Replace(c,six,6)
c = Replace(c,seven,7)
c = Replace(c,eight,8)
c = Replace(c,9,9)
if Cstr(c) <> Cstr(Session(validateCode)) then
Response.write (verification code is incorrect)
Response.end
end if
%>