<!-- #include file="db.txt" -->
<html>
<head>
<title>會員資料修改網站</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5"><style type="text/css">
<!--
body {
	background-color: #00CCFF;
}
-->
</style></head>

<h2 align="center">購物會員資料修改</h2>
<hr>
<%
  RS.Open "select * from hsienshi",DBC
  SQL_Statement = "select * from member where mid=" & Session("mid")
  RS1.Open SQL_Statement,DBC
%>
<form action="mem_edit.asp" method="POST" name="Member">
<H3>請輸入下列資料</h3>
    <p>會員編號：<input type="text" Disabled value=<%=RS1(0)%>>
    <p>姓  名：  <input type="text" size="10" name="m_name" value=<%=RS1(1)%>></p>
    <p>會員居住縣市(如出現亂碼請按一下F5)：
	<select name="Hsi_code">
		<%  While not RS.Eof %>
		   <% if RS1(2)=RS(0) then %>
  		     <Option Selected> 
		   <% else%>
		      <Option>
		   <% end if %> 
 		      <%=RS(0)&RS(1) %>
		    </Option>
		<%   
		     RS.MoveNext 
		   Wend
		 RS.Close
  		%>
	</select>
	
    <p>地址：<input type="text" size="30" name="address" value=<%=RS1(3)%>></p>
    <p>電話：<input type="text" size="12" name="phone" value=<%=RS1(4)%>>
    E-Mail：<input type="text" size="25" name="email" value=<%=RS1(5)%>></p>
    <p>密碼：<input type= "password" size=10  name="pass1">
    確認密碼：<input type= "password" size=10 name="pass2">

    <p><center><input type="submit" name="Mem1" value="確定修改">
    <input type="Button" value="放棄修改" onClick="back()">
    </center></p>
</form>

<hr>
<script language=javascript>
function back()
{
 history.back();
}
</script>
</body>
</html>
