⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.asp

📁 简介:一个程序小巧而功能强大
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="Includes/site-dataconn.asp" -->
<!--#include file="Includes/func-common.asp" -->
<!--#include file="Includes/func-aspcode.asp" -->
<!--#include file="Includes/site-config.asp" -->
<!--#include file="Includes/inc-common.asp" -->
<html>

<head>
<title>// <%=Site_Name%> //</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK REL=stylesheet TYPE="text/css" HREF="Includes/site-style.css">
</head>

<body>
<!--#include file="Includes/inc-header.asp" -->
<%
'navigation trail
response.write("<table border='0' cellspacing='0' cellpadding='2' align='center' class='plain'><tr><td valign='top'><a href='default.asp'>"& Site_Name &"</a> >> Register<br>"& Site_Description &"</td></tr></table>")

Action = request.querystring("Action")
if Action <> "Register" and Action <> "Details"  and Action <> "Complete" and Action <> "Activate" and Action <> "Disabled" then
	Action = "Register"
end if

if session("UserID") <> "" then
	Action = "Member"
end if

if Site_Account_Create = 0 then
	Action = "Disabled"
end if

if Action = "Register" then
%>
	<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
		<tr valign="middle" class="title">
		<td align="center"><%=Site_Name%> //<b> 服务条款和声明</b></td>
		</tr>
		<tr class="body">
		<td align="center">
		<p align="left"><b>&#27880;&#20876;&#21069;&#35831;&#20808;&#38405;&#35835;&#35770;&#22363;&#21327;&#35758;</b><br>
        &#27426;&#36814;&#24744;&#21152;&#20837;&#26412;&#31449;&#28857;&#21442;&#21152;&#20132;&#27969;&#21644;&#35752;&#35770;&#65292;&#26412;&#31449;&#28857;&#20026;&#20844;&#20849;&#35770;&#22363;&#65292;&#20026;&#32500;&#25252;&#32593;&#19978;&#20844;&#20849;&#31209;&#24207;&#21644;&#31038;&#20250;&#31283;&#23450;&#65292;&#35831;&#24744;&#33258;&#35273;&#36981;&#23432;&#20197;&#19979;&#26465;&#27454;&#65306;<br>
        <br>
        &#19968;&#12289;&#19981;&#24471;&#21033;&#29992;&#26412;&#31449;&#21361;&#23475;&#22269;&#23478;&#23433;&#20840;&#12289;&#27844;&#38706;&#22269;&#23478;&#31192;&#23494;&#65292;&#19981;&#24471;&#20405;&#29359;&#22269;&#23478;&#31038;&#20250;&#38598;&#20307;&#30340;&#21644;&#20844;&#27665;&#30340;&#21512;&#27861;&#26435;&#30410;&#65292;&#19981;&#24471;&#21033;&#29992;&#26412;&#31449;&#21046;&#20316;&#12289;&#22797;&#21046;&#21644;&#20256;&#25773;&#19979;&#21015;&#20449;&#24687;&#65306;
		<p align="left"> <br>
        &#65288;&#19968;&#65289;&#29053;&#21160;&#25239;&#25298;&#12289;&#30772;&#22351;&#23466;&#27861;&#21644;&#27861;&#24459;&#12289;&#34892;&#25919;&#27861;&#35268;&#23454;&#26045;&#30340;&#65307;<p align="left"><br>
        &#65288;&#20108;&#65289;&#29053;&#21160;&#39072;&#35206;&#22269;&#23478;&#25919;&#26435;&#65292;&#25512;&#32763;&#31038;&#20250;&#20027;&#20041;&#21046;&#24230;&#30340;&#65307;<p align="left"><br>
        &#65288;&#19977;&#65289;&#29053;&#21160;&#20998;&#35010;&#22269;&#23478;&#12289;&#30772;&#22351;&#22269;&#23478;&#32479;&#19968;&#30340;&#65307;<p align="left"><br>
        &#65288;&#22235;&#65289;&#29053;&#21160;&#27665;&#26063;&#20167;&#24680;&#12289;&#27665;&#26063;&#27495;&#35270;&#65292;&#30772;&#22351;&#27665;&#26063;&#22242;&#32467;&#30340;&#65307;<p align="left"><br>
        &#65288;&#20116;&#65289;&#25423;&#36896;&#25110;&#32773;&#27498;&#26354;&#20107;&#23454;&#65292;&#25955;&#24067;&#35875;&#35328;&#65292;&#25200;&#20081;&#31038;&#20250;&#31209;&#24207;&#30340;&#65307;<p align="left"><br>
        &#65288;&#20845;&#65289;&#23459;&#25196;&#23553;&#24314;&#36855;&#20449;&#12289;&#28139;&#31229;&#12289;&#33394;&#24773;&#12289;&#36172;&#21338;&#12289;&#26292;&#21147;&#12289;&#20982;&#26432;&#12289;&#24656;&#24598;&#12289;&#25945;&#21766;&#29359;&#32618;&#30340;&#65307;<p align="left"><br>
        &#65288;&#19971;&#65289;&#20844;&#28982;&#20398;&#36785;&#20182;&#20154;&#25110;&#32773;&#25423;&#36896;&#20107;&#23454;&#35837;&#35876;&#20182;&#20154;&#30340;&#65292;&#25110;&#32773;&#36827;&#34892;&#20854;&#20182;&#24694;&#24847;&#25915;&#20987;&#30340;&#65307;<p align="left"><br>
        &#65288;&#20843;&#65289;&#25439;&#23475;&#22269;&#23478;&#26426;&#20851;&#20449;&#35465;&#30340;&#65307;<p align="left"><br>
        &#65288;&#20061;&#65289;&#20854;&#20182;&#36829;&#21453;&#23466;&#27861;&#21644;&#27861;&#24459;&#34892;&#25919;&#27861;&#35268;&#30340;&#65307;<p align="left"><br>
        &#65288;&#21313;&#65289;&#36827;&#34892;&#21830;&#19994;&#24191;&#21578;&#34892;&#20026;&#30340;&#12290;<p align="left"><br>
        &#20108;&#12289;&#20114;&#30456;&#23562;&#37325;&#65292;&#23545;&#33258;&#24049;&#30340;&#35328;&#35770;&#21644;&#34892;&#20026;&#36127;&#36131;&#12290;</td>
		</tr>
		<form action="register.asp?Action=Details" method="post">
		<tr valign="middle" class="body">
		<td align="center">
		<input name="submit" type="submit" id="submit" value="我同意" style="width: 80px;margin-left: 5px;">
		</td>
		</tr>
		</form>
	</table>
<%
end if
		
if Action = "Details" then
	strReferer = request.servervariables("HTTP_REFERER")
	if request.form("submit") = "Disagree" or request.form("submit") = "" then
		response.redirect(Site_Forum_URL & "default.asp")
	else
	%>
		<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
			<form action="register.asp?Action=Complete" method="post" onSubmit="this.button.disabled = true;">
			<tr valign="middle" class="title">
			<td align="center" colspan="2"><%=Site_Name%> //<b>新用户注册</b></td>
			</tr>
			<tr valign="middle" class="sub-title">
			<td colspan="2">
            <p align="center">*必填资料:</td>
			</tr>
			<tr valign="top" class="body">
			<td width="350">*用户名:</td>
			<td>
            <input name="Username" type="text" style="width: 200px; border: 1px solid black;" maxlength="60" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>*密码:</td>
			<td>
            <input name="Password" type="password" style="width: 200px; border: 1px solid black;" maxlength="60" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>*重复密码:</td>
			<td>
            <input name="Password2" type="password" style="width: 200px; border: 1px solid black;" maxlength="60" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>*Email地址:</td>
			<td>
            <input name="Email" type="text" style="width: 200px; border: 1px solid black;" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>*重复Email地址:</td>
			<td>
            <input name="Email2" type="text" style="width: 200px; border: 1px solid black;" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>*生日:</td>
			<td>
			<table width="200" border="0" cellspacing="0" cellpadding="0">
				<tr align="center" valign="top">
				<td width="33%" align="left">Day</td>
				<td width="33%">Month</td>
				<td width="33%" align="right">Year</td>
				</tr>
				<tr align="center" valign="top">
				<td width="33%" align="left">
				<select name="day" style="border: 1px solid black;">
					<option value="00" selected>N/A</option>
					<option value="01" >1</option>
					<option value="02" >2</option>
					<option value="03" >3</option>
					<option value="04" >4</option>
					<option value="05" >5</option>
					<option value="06" >6</option>
					<option value="07" >7</option>
					<option value="08" >8</option>
					<option value="09" >9</option>
					<option value="10" >10</option>
					<option value="11" >11</option>
					<option value="12" >12</option>
					<option value="13" >13</option>
					<option value="14" >14</option>
					<option value="15" >15</option>
					<option value="16" >16</option>
					<option value="17" >17</option>
					<option value="18" >18</option>
					<option value="19" >19</option>
					<option value="20" >20</option>
					<option value="21" >21</option>
					<option value="22" >22</option>
					<option value="23" >23</option>
					<option value="24" >24</option>
					<option value="25" >25</option>
					<option value="26" >26</option>
					<option value="27" >27</option>
					<option value="28" >28</option>
					<option value="29" >29</option>
					<option value="30" >30</option>
					<option value="31" >31</option>
				</select>
				</td>
				<td width="33%">
				<select name="month" style="border: 1px solid black;">
					<option value="00" selected>N/A</option>
					<option value="01" >January</option>
					<option value="02" >February</option>
					<option value="03" >March</option>
					<option value="04" >April</option>
					<option value="05" >May</option>
					<option value="06" >June</option>
					<option value="07" >July</option>
					<option value="08" >August</option>
					<option value="09" >September</option>
					<option value="10" >October</option>
					<option value="11" >November</option>
					<option value="12" >December</option>
				</select>
				</td>
				<td width="33%" align="right">
				<input name="year" type="text" value="" size="4" maxlength="4" style="border: 1px solid black;">
				</td>
				</tr>
			</table>
			</td>
			</tr>
			</table>
			<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
			<tr valign="middle" class="sub-title">
			<td colspan="2">
            <p align="center">选填资料: </td>
			</tr>
			<tr valign="top" class="body">
			<td width="350">家庭地址:</td>
			<td>
            <input name="Location" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>个人主页:</td>
			<td>
            <input name="Homepage" type="text" style="width: 200px; border: 1px solid black;" maxlength="200" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>OICQ号码:</td>
			<td>
            <input name="ICQ" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>MSN Handle:</td>
			<td>
            <input name="MSN" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>个人梦想:</td>
			<td>
            <input name="AIM" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
			</tr>
			<tr valign="top" class="body">
			<td>个性签名:</td>
			<td><textarea name="Biography" cols="" rows="5" style="width: 200px; border: 1px solid black;"></textarea></td>
			</tr>
			</table>
			<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
			<tr valign="middle" class="sub-title">
			<td colspan="2">
            <p align="center">帐号保密: (此内容可不甜)</td>
			</tr>
			<tr valign="top" class="body">
			<td width="350">Signature:</td>
			<td><textarea name="Signature" cols="" rows="5" style="width: 200px; border: 1px solid black;"></textarea></td>
			</tr>
			<tr valign="top" class="body">
			<td>Invisible Mode:</td>
			<td><input type="checkbox" name="Invisible" value="1"></td>
			</tr>
			<tr valign="top" class="body">
			<td>Show Email Address in Profile:</td>
			<td><input type="checkbox" name="ShowEmail" value="1"></td>
			</tr>
			<tr valign="top" class="body">
			<td>Allow Administrators To E-Mail You:</td>
			<td><input type="checkbox" name="AdminEmail" value="1"></td>
			</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="main">
			<tr class="body">
			<td align="center" valign="middle">
            <input name="reset" type="reset" id="reset" value="重写" style="width: 80px; margin-right: 5px;"><input type="submit" id="submit" value="注册" name="button" style="width: 80px;margin-left: 5px;"></td>
			</tr>
		</form>
		</table>
		<%
	end if
end if
		
if Action = "Complete" then
	
	if instr(1, request.servervariables("HTTP_REFERER"), Site_Forum_URL & "/register.asp", 1) = 0 then
		strMessage = "You have reached this page in error. Click <a href='default.asp'>here</a> if you are not redirected within five seconds."
		strRedirectURL = "Default.asp"
	end if
	
	'Generate variables
	randomize
	strActivationCode = (Int((999999-100001)*Rnd+100000))
	if request.servervariables("HTTP_X_FORWARDED_FOR") = "" then
		strIPAddress = request.servervariables("REMOTE_ADDR")
	else
		strIPAddress = request.servervariables("HTTP_X_FORWARDED_FOR")
	end If
	if request.form("Day") <> "00" and request.form("Month") <> "00" and request.form("Year") <> "" then
		strDOB = request.form("Day") & request.form("Month")
		if len(request.form("Year")) <= 2 then
			if int(request.form("Year")) > 40 then
				strDOB = strDOB & "19" & request.form("Year")
			else
				strDOB = strDOB & "20" & request.form("Year")
			end if
		else
			strDOB = strDOB & request.form("Year")
		end if
	else
		strDOB = ""
	end if
	strUsername = clean_text(request.form("Username"), 0)
	strEmail = request.form("Email")
	strPassword = request.form("Password")
	strLocation = sql_encode(request.form("Location"))
	strHomepage = sql_encode(request.form("Homepage"))
	strICQ = sql_encode(request.form("ICQ"))
	strMSN = sql_encode(request.form("MSN"))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -