?? update_form.asp.bak
字號:
<!--#Include file="odbc_connection.asp"-->
<html>
<head>
<title>修改客戶資料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body,td,th {
font-size: 14px;
}
body {
background-color: #FFFDEE;
}
-->
</style>
</head>
<body>
<% If session("id")="" Then
Response.Redirect "index.asp"
end if
%>
<h2 align="center">修改客戶資料:</h2>
<%
Dim rs,strSql
'根據change.asp存放到Session里的id值,顯示相應成員的信息
strSql ="Select * From users Where id=" & Session("id") 'id是數值,就不要加引號了
Set rs=db.Execute(strSql)
%>
<center>
<form method="post" action="update.asp">
<table border="0" width="80%" bgcolor="#CC9933">
<tr>
<td>姓名:</td><td><input type="text" name="name" size="20"
value="<%=rs("name")%>"></td>
</tr><tr>
<tr>
<td>身份證:</td><td><input type="sfz" name="sfz" size="20"
value="<%=rs("sfz")%>"></td>
</tr><tr>
<td>聯系方式:</td><td><input type="text" name="tel" size="20"
value="<%=rs("tel")%>"></td>
</tr><tr>
<td>性別:</td><td><input type="text" name="sex" size="10"
value="<%=rs("sex")%>"></td>
</tr></tr>
<td>住址:</td><td><input type="text" name="home" size="40"
value="<%=rs("home")%>"></td>
</tr></tr>
<td>年齡:</td><td><input type="text" name="age" size="10"
value="<%=rs("age")%>"></td>
</tr><tr>
<td>備注:</td><td><textarea name="intro" rows="2" cols="40"
wrap="soft"><%=rs("intro")%></textarea></td>
</tr><tr>
<td></td><td><input type="submit" value=" 確 定 ">
<input type="reset" value=" 重 填 "> </td>
</tr>
<table>
</form>
</center>
<%
rs.Close
Set rs=nothing
db.Close
Set db=nothing
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -