ASP member Registration System program Two
<!--#include file= "Inc/articlechar.inc"-->
<%
If Request.Form ("comane") = "" Then
Response.Write ("<script language=" "JavaScript" ">alert" "Error: You have not entered the company name, please return to check!! ""); History.go ( -1);</script> ")
Response.End
End If
If Request.Form ("somane") = "" Then
Response.Write ("<script language=" "JavaScript" ">alert" error: You did not enter a contact, please return to check!! ""); History.go ( -1);</script> ")
Response.End
End If
If Request.Form ("Phone") = "" Then
Response.Write ("<script language=" "JavaScript" ">alert" error: You did not enter the contact number, please return to check!! ""); History.go ( -1);</script> ")
Response.End
End If
If Request.Form ("title") = "" Then
Response.Write ("<script language=" "JavaScript" ">alert" error: You did not enter a title, please return to check!! ""); History.go ( -1);</script> ")
Response.End
End If
If Request.Form ("content") = "" Then
Response.Write ("<script language=" "JavaScript" ">alert" error: You did not enter the message content, please return to check!! ""); History.go ( -1);</script> ")
Response.End
End If
Set rs = Server.CreateObject ("ADODB.") Recordset ")
Sql= "SELECT * from book"
Rs.Open sql,conn,1,3
Rs.addnew
RS ("name") =htmlencode2 (Request.Form ("name"))
RS ("Comane") =htmlencode2 (Request.Form ("Comane"))
RS ("Somane") =htmlencode2 (Request.Form ("Somane"))
RS ("Phone") =htmlencode2 (Request.Form ("Phone"))
RS ("Fox") =htmlencode2 (Request.Form ("Fox"))
RS ("email") =htmlencode2 (Request.Form ("email"))
RS ("title") =htmlencode2 (Request.Form ("title"))
RS ("content") =htmlencode2 (Request.Form ("content"))
RS ("Time") =date ()
Rs.update
Rs.close
If Request.Form ("name") = "Unregistered user" then
Response.Redirect "Wtok.asp"
Else
Response.Redirect "Netbook.asp"
End If
%>
Okay, the simple registration process has been completed.