<!--#include file="conn.asp"-->

<%
admin=request.form("admin")
password=request.form("password")


If password="" then
response.Write("<script language=javascript>alert('修改的密码不能为空！');history.go(-1)</script>")
else

	set rs=server.createobject("adodb.recordset")
	sql="select * from admin"
	rs.open sql,conn,1,3

	rs("admin")=admin
	rs("password")=password

	rs.update


	response.Write("<script language=javascript>alert('密码修改成功！');window.location='index.asp'</script>")
End if

%>
