<head>
<title></title>
</head>
<body bgcolor="#F0F0FF">
<br>
<p align="center">
<!--#include file="conn.asp"-->
<%
if request("username")<>"" and request("password")<>"" then
session("roomid") = "UserInfo"
username=request("username")
password=request("password")
username=replace(username,"""","")
username=replace(username,"'","")
if len(username) > 20 then Response.End 
password=replace(password,"""","")
password=replace(password,"'","")
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From ["&session("roomid")&"] where username='"&username&"'",conn,1,3
if rs.recordcount=0 then
	response.write "这个用户呢称不存在！"
else
	if password<>rs("userpassword") then
		response.write "密码错误，不能注销！"
	else
		rs.delete
		response.write "注销成功！"
	end if
end if
rs.close
set rs=nothing
else%>


呢称或密码不能为空！



<%end if   
%>   
<br>   
<br>
<br>
<p align="center">
<INPUT type="button" value="关闭窗口" name="btnClose" onclick="window.close();" style="background-color: #EFEFEF; border: 1 solid #000000">
