?? modify.asp
字號:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=style.css rel=STYLESHEET type=text/css>
<title>用戶資料更改</title>
</head>
<!--#include file="conn.asp"-->
<%
if session("user_name")="" then
response.redirect "index.asp"
else
user_name=session("user_name")
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from user where user_name='"&user_name&"'"
rs.open sql,conn,3,3
%>
<center>
<form method="POST" action="modifysave.asp?user_name=<%=rs("user_name")%>">
<table border="0" width="400" cellspacing="1">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="1">
<tr>
<td width="100%" bgcolor="#FF9966">
<p align="center">用戶資料修改</p>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#33CCFF">
<table border="0" width="100%" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td width="19%">用戶名</td>
<td width="81%"> <%=rs("user_name")%> <font color=red>此項不可更改</a></td>
</tr>
<tr>
<td width="19%">密碼</td>
<td width="81%"><input type="text" name="user_pass" size="36" class=input value="<%=rs("user_pass")%>"></td>
</tr>
<tr>
<td width="19%">E-mail</td>
<td width="81%"><input type="text" name="user_mail" size="36" class=input value="<%=rs("user_mail")%>"></td>
</tr>
<tr>
<td width="19%">電話</td>
<td width="81%"><input type="text" name="user_tel" size="36" class=input value="<%=rs("user_tel")%>"></td>
</tr>
<tr>
<td width="19%">郵政編碼</td>
<td width="81%"><input type="text" name="user_postcode" size="36" class=input value="<%=rs("user_postcode")%>"></td>
</tr>
<tr>
<td width="19%">地址</td>
<td width="81%"><input type="text" name="user_adds" size="36" class=input value="<%=rs("user_adds")%>"></td>
</tr>
<tr>
<td width="19%">真實姓名</td>
<td width="81%"><input type="text" name="user_namec" size="36" class=input value="<%=rs("user_namec")%>"></td>
</tr>
<tr><%rs.close%>
<td width="100%" colspan="2">
<p align="center"><input type="submit" value="確定" name="B1" class=input></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<%end if%>
<%
set rs=nothing
conn.close
set conn=nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -