📄 update_form.asp
字号:
<!--#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 + -