<!--#include file="mdb.asp"-->
<!--#include file="md5.asp"-->
<!--#include file="config.asp"-->
<%dim pw,email
username=Lcase(trim(request("username")))
pw=md5(trim(request("pw")),16)
email=trim(request("email"))
set rs=server.createobject("adodb.recordset")
rs.open"select * from 84wz_my_user where username='"&username&"'",conn,1,3
if rs.eof and rs.bof then
   rs.addnew
   rs("username")=username
   rs("password")=pw
   if email="" then
   email=" "
   end if
   rs("email")=email
   rs.update
   response.cookies(cookiesname)("username")=username
   response.cookies(cookiesname).expires=date()+1
   call mail()
else
   Response.Write("<script language=javascript>alert('用户名已存在！');javascript:history.go(-1)</script>")
   Response.End()
end if
rs.close
set rs=nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网址收藏夹</title>
<style type="text/css">
<!--
a {
	font-size: 12px;
	color: #6A6A6A;
}
a:visited {
	color: #4F4F4F;
	text-decoration: none;
}
a:active {
	color: #F97C00;
	text-decoration: none;
}
a:link {
	color: #4F4F4F;
	text-decoration: none;
}
a:hover {
	text-decoration: none;
	color: #F97C00;
}
body,td,th {
	font-size: 12px;
	color: #4F4F4F;
}
.greenborder {border:1px solid #7EC8EA;}
.greenborder1 {border-right:1px solid #7EC8EA; background-color:#EFF8FC}
.inp {width:154px;border:1px solid #7f9db9;color:#052A5C}
.inp1 {width:66px;border:1px solid #7f9db9;color:#052A5C;font-size:9px;height:15px;margin-right:2px}
.slct {width:158px}
.sub {width:36px}
body {
	margin-top: 0px;
}
.style1 {font-weight: bold}
-->
</style>
</head>

<body>
<%sub mail()%>
<table width="450" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#62B0FF">
  <tr bgcolor="#BFDFFF">
    <td height="20" colspan="2" bgcolor="#BFDFFF"><div align="center"><strong>注册成功</strong></div></td>
  </tr>
  <tr bgcolor="#BFDFFF">
    <td height="20" bgcolor="#FFFFFF"><div align="center"><a href="../fav">进入网址收藏夹</a></div></td>
  </tr>
</table>
<%end sub%>
</body>
</html>
