📄 reg.asp
字号:
<!--#include file="conn.asp"-->
<%
DefaultZoneNum=0 '新注册会员默认可管理的域名数
DefaultRRNum = 0 '新注册会员默认的可解析的记录数
DefaultVerify = "N" '新注册会员默认的审核状态为未审
if Saferequest("act")="reg" then
username=Saferequest("username")
password1=Saferequest("password1")
realname=Saferequest("realname")
tel=Saferequest("tel")
address=Saferequest("address")
postcode=Saferequest("postcode")
email=Saferequest("email")
msn=Saferequest("msn")
icq=Saferequest("icq")
set rs=conn.execute("select * from userlist where username='"&username&"' ")
if not rs.eof then
response.write "会员["&username&"]已存在,请选择别的会员"
response.end
end if
conn.execute(" insert into userlist (username,password,realname,tel,address,postcode,email,msn,icq,isadmin,soanum,rrnum,regtime,verify) values ('"&username&"','"&password1&"','"&realname&"','"&tel&"','"&address&"','"&postcode&"','"&email&"','"&msn&"','"&icq&"','N',"&DefaultZoneNum&","&DefaultRRNum&",'"&now()&"','"&DefaultVerify&"') ")
mesg="会员["&username&"]注册成功,请从首页登录!"
%><script language='javascript'>
<!--
alert('<%=mesg%>');
location='index.asp';
-->
</script>
<%
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>WinMyDNS管理-会员注册</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.table1 {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #666666;
}
-->
</style>
</head>
<body>
<table width="630" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/iis_02.gif" width="630" height="137" alt=""></td>
</tr>
</table>
<table width="630" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="21" height="512" valign="bottom" background="images/iis_04.gif"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
<td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <td height="30"> </td> </tr>
</table>
<!--中间部分开始-->
<script language='JavaScript' >
<!--
function check_input()
{
newuserreg=document.dnsform;
if(newuserreg.username.value=='')
{
alert('会员名不能为空');
newuserreg.username.focus();
return false;
}
if(newuserreg.password1.value=='')
{
alert('密码不能为空');
newuserreg.password1.focus();
return false;
}
if(newuserreg.password2.value=='')
{
alert('密码不能为空');
newuserreg.password2.focus();
return false;
}
if(newuserreg.password2.value!=newuserreg.password1.value)
{
alert('两次输入密码不一致');
newuserreg.password2.focus();
return false;
}
if(newuserreg.realname.value=='')
{
alert('姓名不能为空');
newuserreg.realname.focus();
return false;
}
if(newuserreg.tel.value=='')
{
alert('电话不能为空');
newuserreg.tel.focus();
return false;
}
if(newuserreg.address.value=='')
{
alert('地址不能为空');
newuserreg.address.focus();
return false;
}
if(newuserreg.postcode.value=='')
{
alert('邮编不能为空');
newuserreg.postcode.focus();
return false;
}
if(newuserreg.email.value=='')
{
alert('email邮箱不能为空');
newuserreg.email.focus();
return false;
}
}
//-->
</script>
<table width="98%" border="1" cellpadding="4" cellspacing="0" bordercolor="#AAE3FF">
<tr><td bgcolor="#AAE3FF" colspan="10">会员注册</td></tr>
<form method="POST" action="reg.asp" name="dnsform" onsubmit='return check_input()'>
<input type="Hidden" name="act" value="reg">
<tr><td width="25%">会员名 <font color="#ff0000">*</font></td>
<td><input type="Text" name="username" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>密码 <font color="#ff0000">*</font></td>
<td><input type="Password" name="password1" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>确认密码 <font color="#ff0000">*</font></td>
<td><input type="Password" name="password2" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>姓名 <font color="#ff0000">*</font></td>
<td><input type="Text" name="realname" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>电话 <font color="#ff0000">*</font></td>
<td><input type="Text" name="tel" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>地址 <font color="#ff0000">*</font></td>
<td><input type="Text" name="address" value="" size="50" maxlength="125"></td>
</tr>
<tr><td>邮编 <font color="#ff0000">*</font></td>
<td><input type="Text" name="postcode" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>email <font color="#ff0000">*</font></td>
<td><input type="Text" name="email" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>MSN</td>
<td><input type="Text" name="MSN" value="" size="20" maxlength="125"></td>
</tr>
<tr><td>QQ</td>
<td><input type="Text" name="QQ" value="" size="20" maxlength="125"></td>
</tr>
<tr><td colspan="2" align="center"><input type="Submit" value="确认注册"></td>
</tr>
</form>
</table>
<!--中间部分结束-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"> </td>
</tr>
</table></td>
<td width="32" background="images/iis_06.gif"> </td>
</tr>
</table>
<table width="630" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="21"><img src="images/iis_51.gif" width="21" height="15" alt=""></td>
<td background="images/iis_52.gif"> </td>
<td width="30"><img src="images/iis_54.gif" width="21" height="15" alt=""></td>
</tr>
</table>
<br><br><br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -