<!--#include file="conn.asp"-->
<!--#include file="chklogin.asp"-->
<%
dim realname,sex,birthday,country,blood,city,zhiye,xueli,images,tel,email,qq,msn,address,userinfo,opener,pic
realname=request("realname")
sex=request("sex")
birthday=request("birthday")
pic=request("inpic")
country=request("country")
blood=request("blood")
city=request("city")
zhiye=request("zhiye")
xueli=request("xueli")
images=request("images")
tel=request("tel")
email=request("email")
qq=request("qq")
msn=request("msn")
address=request("address")
userinfo=request("userinfo")
opener=request("opener")

if not isdate(birthday) then
response.write "<script>alert('生日格式不对!');window.close();</script> "
response.End()
end if

dim rs,sql
set rs=server.CreateObject("adodb.recordset")
sql ="Select * from kw_user where username='"&session("userid")&"'"
rs.open sql,conn,1,3
rs("realname")=realname
rs("sex")=sex
rs("birthday")=birthday
rs("country")=country
rs("blood")=blood
rs("city")=city
rs("zhiye")=zhiye
rs("pic")=pic
rs("xueli")=xueli
rs("images")=images
rs("tel")=tel
rs("mail")=email
rs("qq")=qq
rs("msn")=msn
rs("address")=address
rs("userinfo")=userinfo
rs("openp")=opener
rs.update
rs.close
set rs=nothing
closedb
response.write "<script>alert('修改成功!');window.opener.location.reload();window.close();</script> "
%>