<!--#include file="conn1.asp"-->
<!--#include file="cookies.asp"-->



<%if request.QueryString("action")="pass" then





sql="select * from member where id="&request.cookies("thdc")("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3

rs("Password")=request.form("UserPassword")

rs.update

rs.close
set rs=nothing


response.Redirect"editinfo.asp?action=pass"
Response.Write "<script language=javascript>window.alert('ÃÜÂëÐÞ¸Ä³É¹¦£¡');window.history.go(-1);</script>"
response.End



else


sql="select * from member where id="&request.cookies("thdc")("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
rs("truename")=trim(request.form("truename"))
'rs("localArea")=trim(request.form("localArea"))
if trim(request.form("a"))="" then
rs("touxiang")=trim(request.form("tupian1"))
else
rs("touxiang")=trim(request.form("a"))
end if

rs("leixing")=int(request.form("leixing"))
rs("UserEmail")=trim(request.form("UserEmail"))
rs("sex")=trim(request.form("sex"))
rs("contact")=trim(request.form("contact"))
rs("shouji")=trim(request.form("shouji"))
rs("qicq")=trim(request.form("qicq"))
rs("zhengxiang")=int(request.form("zhengxiang"))
rs("yanfeng")=int(request.form("yanfeng"))
rs("zhuhui")=int(request.form("zhuhui"))
rs("shigu")=int(request.form("shigu"))
rs("baisha")=int(request.form("baisha"))
rs("huaxin")=int(request.form("huaxin"))
rs("lixin")=int(request.form("lixin"))

rs.update

rs.close
set rs=nothing



response.Redirect"editinfo.asp"
response.End



end if%>