<!--#include file="book_conn.asp"-->
<%
if request("user_id")=""  then
response.write "<script LANGUAGE='javascript'>alert('用户ID不能为空！');history.go(-1);</script>"
response.End
end if
if request("user_name")="" then
response.write "<script LANGUAGE='javascript'>alert('用户姓名不能为空！');history.go(-1);</script>"
response.End
end if
if request("user_dh")="" then
response.write "<script LANGUAGE='javascript'>alert('用户电话不能为空！');history.go(-1);</script>"
response.End
end if

Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From user1 where id="&request("id"),conn,1,3
rs("user_id")=request("user_id")
rs("user_name")=request("user_name")
if request("user_password") <> "" then
rs("user_password")=request("user_password")
end if
 rs("user_dh")=request("user_dh")
rs("user_email")=request("user_email")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language='javascript'>"
response.write "alert('修改成功！');"
response.write "location.href='kfuser.asp';"			
response.write "</script>"
%>
 
