user=session("admins")
pwd=trim(request.Form("pwd"))
group=request.Form("group")
if user="" then
response.write("alert('非法提交');window.location.href('manageuser.asp')")
response.end
end if
set rs=server.CreateObject("adodb.recordset")
cmd="select * from admin where user='"&user&"'"
rs.open cmd,conn,1,3
rs("user")=user
if pwd"" then
rs("pwd")=md5(request.Form("pwd"))
end if
rs("group")=group
rs.update
session("admins")=""
response.write("alert('信息修改成功');window.location.href('manageuser.asp')")
%>