<!-- #include file="conn.asp "-->
<%
if Request("modifyPassword")=1 then
	if Request("password1")<>Request("password2") or  Request("password1")="" then
%>
	<script language=Javascript>
	<!--
	alert("密码输入不正确，请重新输入(不能为空，确认密码、密码必须相同)！  ");
	this.document.location="memberMod.asp";
	-->
	</script>
<%
	response.End
	end if
	modifyPassword=1
end if
'	response.write modifyPassword
'	response.End
       Set cmdTemp = Server.CreateObject("ADODB.Command")
       Set InsertCursor = Server.CreateObject("ADODB.Recordset")
       cmdTemp.CommandText = "SELECT * FROM member WHERE memberID='"&request.cookies("memberID")&"'"
       cmdTemp.CommandType = 1
       Set cmdTemp.ActiveConnection = conn
       InsertCursor.Open cmdTemp, , 1, 3
       InsertCursor("name") =Request("name")
       InsertCursor("sex") =Request("sex")
       if modifyPassword=1 then
       InsertCursor("password") =Request("password1")
       end if
       InsertCursor("question") =Request("question")
       InsertCursor("answer") =Request("answer")
       InsertCursor("email") =Request("email")
       InsertCursor("phone") =Request("phone")
       InsertCursor("address") =Request("address")
       InsertCursor("code") =Request("code")
       InsertCursor.Update
       InsertCursor.close
	   conn.close
       set InsertCursor=nothing
       set conn=nothing
%>
<script language=Javascript>
<!--
alert("修改成功！");
this.document.location="member.asp";
-->
</script>
