If Userid = "" Then WrongMsg = WrongMsg + "<DD><LI>账号为空。</LI>" If Password = "" Then WrongMsg = WrongMsg + "<DD><LI>密码为空。</LI>" If Confirm = "" Then WrongMsg = WrongMsg + "<DD><LI>重复密码为空。</LI>" If Email = "" Then WrongMsg = WrongMsg + "<DD><LI>邮件地址为空。</LI>"
If WrongMsg = "" Then
If Password <> Confirm Then WrongMsg = WrongMsg + "<DD><LI>两次输入密码不相同。</LI>" If Not CheckEmail( Email ) Then WrongMsg = WrongMsg + "<DD><LI>非法邮件地址。</LI>"
If WrongMsg = "" Then SQL = "SELECT * FROM bbsmember WHERE [账号]='" & SqlStr(Userid) & "'" RecMember.Open SQL , Con , 1 If RecMember.BOF AND RecMember.EOF Then UserExist = False Else UserExist = True RecMember.Close
If Not UserExist Then SQL = "INSERT INTO bbsmember ([账号],[密码],[邮件]) VALUES('" &_ SqlStr( Userid ) & "','" &_ SqlStr( Password ) & "','" &_ SqlStr( Email ) & "')" Con.Execute( SQL ) Else WrongMsg = WrongMsg + "<DD><LI>用户名已经存在。</LI>" End If