www.gusucode.com > 528人才招聘网整站源代码-蓝色经典 精简版 2.0源码程序 > admin/updata_user.asp

    <!--#include file="conn.asp"-->
<!--#include file="md5.asp"-->
<%
if session("login")<>"yes" then
response.write "<script language=JavaScript>" & chr(13) & "alert('您还未登陆或者超时,请重登陆!');"&"window.location.href = '../'"&" </script>"
response.end
end if
name=trim(request("name"))
psw=trim(request("psw"))
if psw="" then
sql="update gogo_admin set gogo_name='"&name&"' where id=1"
else
sql="update gogo_admin set gogo_name='"&name&"',gogo_pwd='"&md5(psw)&"' where id=1"
end if
rs.open sql,conn,1,1
response.write "<script language=JavaScript>" & chr(13) & "alert('修改成功,即将返回!');"&"window.location.href = 'admin_user.asp'"&" </script>"
set rs=nothing
%>