<!--#include file="includes/ADOVBS.inc"-->
<!--#include file="includes/conn_SQLServer.asp"-->
<!--#include file="includes/GeneralTools.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>注册</title>
</head>
<body>
<%
dim strUserName
dim strPassword
dim strConfPassword
dim strRealName
dim strGender
dim strTel
dim strEmail
dim strHomePage
dim blnGender
strUserName=Request.Form("txtUserName")
strPassword=Request.Form("txtPassword")
strConfPassword=Request.Form("txtConfPassword")
strRealName=Request.Form("txtRealName")
strGender=Request.Form("sltGender")
strTel=Request.Form("txtTel")
strEmail=Request.Form("txtEmail")
strHomePage=Request.Form("txtHomePage")
if strUserName="" or strPassword="" or strConfPassword="" or strRealName=""_
or strGender="non" or strTel="" or strEmail="" then
response.redirect "Signup.asp"
end if
if strPassword<>strConfPassword then
response.redirect "Signup.asp"
end if
tacklePrime(strUserName)
tacklePrime(strPassword)
tacklePrime(strRealName)
tacklePrime(strGender)
tacklePrime(strTel)
tacklePrime(strEmail)
if strGender="male" then
blnGender=1
else
blnGender=0
end if
sql="insert into UserInfo values('"&strUserName&"','"&strPassword&"','"_
&strRealName&"',"&blnGender&",'"&strTel_
&"','"&strEmail&"','"&strHomePage&"')"///这里提示Microsoft VBScript 编译器错误 (0x800A0400)缺少语句的错误,???
call openDB()
conn.Execute(sql)
call closeDB()
response.write"注册成功,欢迎您"
%>
</body>
</html>