Please god let me see, how to increase the password length limit, and request a new password be Numbers, letters, special symbol
<%
Set the rs=server. Createobject (" adodb. You ")
SQL="select * from Student where StuId=" & amp; The session (" StuId ")
Rs. The open SQL, conn, 1, 3
If the rs (" Password ")=md5 (request (" Password ")) and request (" password1 ")=request (" password2 ") and the request (" password1 ") & lt; & gt;" "Then
Rs (" Password ")=md5 (request (" password1 "))
Rs. Update
Rs. Close
Set the rs=nothing
Response. Write "& lt; script> Alert (' modify success! '); Location='" & amp; Request. ServerVariables (" HTTP_REFERER ") & amp;" '& lt;/script>"
The else
Rs. Close
Set the rs=nothing
Response. Write "& lt; script> Alert (' old password mistake or repeat password do not agree with the new password, modify the failure! '); Location='" & amp; Request. ServerVariables (" HTTP_REFERER ") & amp;" '& lt;/script>"
End the if
%>
CodePudding user response:
Judgment is written on the front end, regular matching detection with js, write on the server will add server workload!