up4.asp

来自「是一种自动化办公软件」· ASP 代码 · 共 47 行

ASP
47 行
字号
<!--#include file="conn.asp"-->
 <%
   dim rs
   dim sql
   dim id
   id = request.querystring("id")
   set rs=server.CreateObject("ADODB.RECORDSET")
   sql ="select * from yonghu1 where id="&id
   rs.open sql, conn,1,1
   if not rs.eof then
   %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="check.asp?action=upt&id=<%=id%>" >
<p>用户名:
  <label>
  <input name="username" type="text"  value="<%=rs("username")%>"/>
  </label>
</p>
<p>用户密码:
  <label>
  <input name="password" type="text" value="<%=rs("password")%>" />
  </label>
</p>



<p>
  <label>
  <input type="submit" name="Submit" value="修改" />
  </label>
</p>
</form>
</body>
</html>
<%
end if
rs.close
set rs = nothing
conn.close
set conn = nothing
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?