Source Code <%
'==================================================================================================
Case "Adduser"
'==================================================================================================
' Add user
'==============
Userid = Trim (Request ("Userid"))
Password = Trim (Request ("Password"))
Confirm = Trim (Request ("Confirm"))
email = Trim (Request ("email"))
Wrongmsg = ""
If Userid = "" Then wrongmsg = wrongmsg + "<DD><LI> account number is empty. </LI> "
If Password = "" Then wrongmsg = wrongmsg + "<DD><LI> password is empty. </LI> "
If Confirm = "" Then wrongmsg = wrongmsg + "<DD><LI> duplicate password is null. </LI> "
If email = "Then wrongmsg = wrongmsg +" <DD><LI> email address is empty. </LI> "
If wrongmsg = "" Then
If Password <> Confirm Then wrongmsg = wrongmsg + "<DD><LI> two times the input password is not the same. </LI> "
If not Checkemail (email) Then wrongmsg = wrongmsg + "<DD><LI> illegal email address. </LI> "
If wrongmsg = "" Then
SQL = "SELECT * from Bbsmember WHERE [Account]= '" & 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 ([account],[password],[mail]") VALUES (' "&_
Sqlstr (Userid) & "', '" &_
Sqlstr (Password) & "', '" &_
Sqlstr (Email) & "')"
Con.execute (SQL)
Else
Wrongmsg = wrongmsg + "<DD><LI> username already exists. </LI> "
End If
End If
End If
%>
<table align=center border=0 cellpadding=7 cellspacing=0 width=650>
<TR>
<TD class=menu>
<%
If wrongmsg = "Then" Displays success information
%>
Congratulations to you! You have successfully registered! <BR><BR>
<a href= "/" > Return to "Fly Linzhuang" </A><BR>
<a href= "<%= asp_file_name%>? Job=list > Return to "Experience Exchange" </A><BR>
<a href= "<%= asp_file_name%>? Job=write "> published articles </A><BR>
<%
Else ' Displays an error message
%>
Operation failed:<br>
<%= wrongmsg%><br><br>
<a href= "Javascript:history.back ()" > Return to Previous page </A>
<%
End If
%>
</TD>
</TR>
</TABLE>
<%
'==================================================================================================
Case "Send"
'==================================================================================================
' Send mail
' (send the article to the user's mailbox)
'=============================
Which = Request ("Which")
email = Trim (Request ("email"))
%>
<table align=center border=0 cellpadding=7 cellspacing=0 width=650>
<TR>
<td