<% if session("admin")="" then response.redirect "default.asp" end if username=request.form("username") oldpass=request.form("oldpass") newpass=request.form("newpass") confirmpass=request.form("confirmpass") if username<>"" and newpass=confirmpass then sql="select * from admin where 帐号='"&username&"'" set rs=server.createobject("adodb.recordset") rs.open sql,conn,3,3 if not rs.eof then if oldpass=rs("密码") then rs("密码")=newpass rs.update response.redirect "editpassok.asp" end if end if end if %> 修改密码

原始帐号:

原始密码:
新设密码:
确认密码: