登陆asp class(7)
Response.Write " </tr>" & vbCrLf
Response.Write " <tr>" & vbCrLf
Response.Write " <td> </td>" & vbCrLf
Response.Write " <td align=""right""><input type=""submit"" value=""登 录..."" name=""btnSubmit"" style=""width:80px;font:menu;"" ID=""Submit1""></td>" & vbCrLf
Response.Write " </tr>" & vbCrLf
Response.Write " </form> " & vbCrLf
Response.Write " </table>" & vbCrLf
End Sub
'检验用户登录
Sub chklogin()
Dim UserName,Password,IP
username = Trim(Replace(Request("username"), "'", ""))
password = MD5(Trim(Replace(Request("password"), "'", "")), 16)
If Request("verifycode") = "" Then
errmsg = errmsg + "<br>" + "<li>请返回输入确认码。"
Founderr = True
ElseIf Session("getcode") = "9999" Then
Session("getcode") = ""
ElseIf Session("getcode") = "" Then
errmsg = errmsg + "<br>" + "<li>请不要重复提交,如需重新登陆请返回登陆页面。"
Founderr = True
ElseIf CStr(Session("getcode")) <> CStr(Trim(Request("verifycode"))) Then
errmsg = errmsg + "<br>" + "<li>您输入的确认码和系统产生的不一致,请重新输入。"
内容版权声明:除非注明,否则皆为本站原创文章。