📄 xw_ze.asp
字号:
<!--#include file=xwfun.asp-->
<!--#include file=conn.asp-->
<!--#include file=md5.asp-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<LINK rel="stylesheet" type="text/css" href="image/login.css">
</HEAD>
<BODY>
<%
xs_user=htmlencode(request("xs_user"))
xs_pass=md5(request("xs_pass"))
xs_user1=htmlencode(request("xs_user1"))
xs_pass=request("xs_pass1")
xs_pass1=md5(request("xs_pass1"))
xs_pass2=md5(request("xs_pass2"))
If request("action")="nn" Then
Sql="select * from admin where xs_user='"& xs_user1 &"'"
Set Rs=Server.CreateObject("adodb.recordSet")
Rs.open sql,conn,1,1
If not Rs.bof And Not Rs.eof then
Response.Write"<script>alert('警告!\n\用户名以被注册!!\n\请重新输入!!');this.location.href='xw_ze.asp';</SCRIPT>"
ElseIf xs_user1="" Or xs_pass1="" then
Response.Write"<script>alert('警告!\n\用户名或密码不能为空!!\n\请重新输入!!');this.location.href='xw_ze.asp';</SCRIPT>"
ElseIf xs_pass1=xs_user1 Then
Response.Write"<script>alert('警告!\n\密码和用户名不能一至!!\n\请重新输入!!');this.location.href='xw_ze.asp';</SCRIPT>"
ElseIf xs_pass2<>xs_pass1 then
Response.Write"<script>alert('警告!\n\确认密码有误!!\n\请重新输入!!');this.location.href='xw_ze.asp';</SCRIPT>"
ElseIf Len(xs_pass)<6 Then
response.write"<script>alert('警告!\n\密码不能少于6位!!\n\请重新输入!!');this.location.href='xw_ze.asp';</SCRIPT>"
Else
conn.execute("insert into [admin] (xs_user,xs_pass) values ('"& xs_user1 &"','"& xs_pass1 &"')")
Response.Write"<script>alert('!注册成功 ! \n 用户名:"& xs_user1 &" \n!请记好!');this.location.href='login.asp';</SCRIPT>"
response.End
End If
End If
%>
<div class="div1">
<div id="b1">
<table border="0" cellpadding="3" cellspacing="1" style="border-collapse: collapse; width="260" align="center">
<tr>
<td align="center">· 学生注册 ·</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%">
<form name="form6" method="post" action="?action=nn" onsubmit="return login(this);">
<tr>
<td width="80" height="30" >用户名:</td>
<td><input type="text" name="xs_user1" maxlength="16"><font color="red"> * </font></td>
</tr>
<tr>
<td height="30">密 码:</td>
<td><input type="password" name="xs_pass1" maxlength="16"><font color="red"> * </font></td>
</tr>
<tr>
<td>密码确认:</td>
<td><input type="password" name="xs_pass2" maxlength="16"><font color="red"> * </font></td>
</tr>
<tr>
<td height="40" colspan="2" align="center"><input type="submit" value="确定">  <input type="reset" value="重置"></td>
</tr>
<tr>
<td colspan="2"><a href="login.asp">返回</a></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</div>
</div>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -