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

📄 individual_reg.asp

📁 站完全依据SEO技术建立
💻 ASP
字号:
<%dbdns="../"%>
<!--#include file="../inc/conn.asp"-->

<!--#include file="../inc/md5.asp"-->
<%if request("action")="save" then
user=request("user")
pwd=request("pass")

set rs=server.CreateObject ("adodb.recordset")
sql="select * from Job_qz where user='"&user&"'"
rs.open sql,conn,1,3
if not rs.eof then
response.write"<SCRIPT language=JavaScript>alert('该户名已经存在,请重新填写用户名。');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
else
set rs=server.createobject("adodb.recordset")
sql="select * from Job_qz where (id is null)" 
rs.open sql,conn,1,3
rs.addnew
rs("user")=user
rs("pwd")=md5(pwd)
rs("dateandtime")=date()
rs("key1")=cityjobqzkey
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
'===========================================


if cityjobqzkey=true then
response.write"<script>alert('用户注册成功!谢谢您的参与');window.open('index.asp','_self')</script>"
response.end
elseif cityjobqzkey=false then
response.write"<script>alert('用户注册成功!请等待管理员的开通');window.open('index.asp','_self')</script>"
response.end
end if

end if%>

<%=citycss%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=citytitle%></title>
<script language="JavaScript">
<!--
function checkdata() {
if( isNumberString(addform.user.value,"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_")!=1 || addform.user.value.length<2 || addform.user.value.length>16) {
alert("\用户注册出错,下面是产生错误的可能原因:\n\n·用户名必须是2-16位的数字、英文或下划线")
return false;
}
if( addform.pass.value =="" || addform.pass.value.length<4 || addform.pass.value.length>16) {
alert("\用户注册出错,下面是产生错误的可能原因:\n\n·请输入 4-16 位的密码")
return false;
}
if( addform.pass1.value =="" || addform.pass1.value.length<4 || addform.pass1.value.length>16) {
alert("\用户注册出错,下面是产生错误的可能原因:\n\n·请输入您的确认密码")
return false;
}
if( addform.pass.value != addform.pass1.value ) {
alert("\用户注册出错,下面是产生错误的可能原因:\n\n·密码与确认密码不一致,请重新输入")
return false;
}
return true;
}
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++)  {
	TempChar= InString.substring (Count, Count+1);
	if (RefString.indexOf (TempChar, 0)==-1)  
	return (false);
}
return (true);
}
// -->
</script>
</head>

<body topmargin="0">
<!--#include file="../top.asp"-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr><td height=10></td></tr>
  <tr>
    <td height=400>
<!--==================-->
<%if webkey2=1 then
webkey22
else%>
<table width="50%" border="0" cellpadding="0" cellspacing="0" align="center" style="border:1px #999999 solid">
<form name="addform" method="post" action="individual_reg.asp?action=save" onSubmit="return checkdata()">
  <tr bgcolor="#efefef">
    <td colspan=2 height="25" align=center style="border-bottom:1px #999999 solid"><strong>::个人登录信息::</strong></td>
  </tr>
  <tr>
    <td width="31%" align="center">登录用户名</td>
	<td width="69%" height="60"><input name="user" type="text" size="20" maxlength="16"><br>2-16个<font color=red>英文、数字或下划线</font></td>
  </tr>
  <tr>
    <td align="center">登录密码</td>
	<td height="40"><input name="pass" type="password" size="20" maxlength="16"> 4-16个字符</td>
  </tr>
  <tr>
    <td align="center">确认密码</td>
	<td height="40"><input name="pass1" type="password" size="20" maxlength="16"> 4-16个字符</td>
  </tr>
  <tr align="center">
    <td colspan="2" height="80"><input type="image" name="img" src="../img/reg.gif" style="border:0"></td>
  </tr>
</form>
</table>
<%end if%>
<!--==================-->
	</td>
  </tr>
</table>
<!--====== bottom ========-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#ffffff>
<tr><td height=10></td></tr>
<tr><td height=2 bgcolor=#4795EC></td></tr>
  <tr>
    <td align="center" height=80><%=citybottom%></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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