📄 saveregistar.asp
字号:
<%
'==============================================================================
'软件名称:星空社区 VER V1.1.2
'当前版本:starcity club V1.1.2
'最新更新:2004.9
'==============================================================================
'Copyright (C) 2002-2004 Googln.com All rights reserved.
'商业注册联系:010-64410364
'技术支持QQ:6370639(限商业用户)(限商业用户)
'程序开发:Googln Studio(BeiJing)
'Email:Avram@163.com
'论坛支持:星空社区(http://www.starcity.cn/bbs)
'官方网站:www.Googln.com 演示站点:www.starcity.cn/bbs 都市星空:www.starcity.cn 阳光商城:www.sunmall.com.cn
'==============================================================================
'免费版本请在首页保留版权信息,并做上本站LOGO友情连接
'都市星空在线保留此程序的法律追究权利
'==============================================================================
%>
<!--#include file="include/conn.asp"-->
<!--#include file="include/md5.asp"-->
<%
sql="select id from db_user where username='"&Request("username")&"'"
set rs=conn.execute (sql)
if not rs.eof then
%>
<script language=Javascript>
<!--
alert("该用户名已存在,请重新选择用户名");
window.history.go(-1);
//-->
</script>
<%
response.End
end if
%>
<%
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set InsertCursor = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "SELECT top 1 * FROM db_user order by dateandtime desc"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = conn
InsertCursor.Open cmdTemp, , 1, 3
InsertCursor.addnew
InsertCursor("username") =Request("username")
InsertCursor("password") =EnPas(Request("password"))
InsertCursor("question") =Request("question")
InsertCursor("answer") =Request("answer")
InsertCursor("email") =Request("email")
InsertCursor("sex") =Request("sex")
InsertCursor("name") =Request("name")
InsertCursor("Face") =Request("Face")
InsertCursor("oicq") =Request("oicq")
InsertCursor("Underwrite") =Request("Underwrite")
InsertCursor.Update
InsertCursor.close
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="2;url=login.asp">
<link rel="stylesheet" type="text/css" href="include/style_.css">
<title>注册成功!</title>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body>
<p> </p>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/bbs_0.gif" width="600" height="11"></td>
</tr>
<tr>
<td height="25" background="images/bbs_2.gif"> 注册成功:</td>
</tr>
<tr>
<td height="25" background="images/bbs_2.gif"><div align="center">系统2秒钟后将返回登录页!</div></td>
</tr>
<tr>
<td height="25" background="images/bbs_2.gif"><div align="center"><a href="login.asp"><img src="images/login.gif" width="64" height="19" border="0"></a></div></td>
</tr>
<tr>
<td valign="top"><img src="images/bbs_3.gif" width="600" height="12"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -