⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 asp入门呵呵呵刚学的人看看asp入门呵呵呵刚学的人
💻 ASP
字号:
<%
set conn=server.CreateObject("adodb.connection")
DBPath = Server.MapPath("db1.mdb")
conn.open "provider=microsoft.jet.oledb.4.0; data source="&DBpath

id=request("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from info where id="&id
rs.open sql,conn,1,1
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改信息</title>
<link href="admin.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE5 {color: #000000; }
.STYLE9 {color: #FFFFFF}
-->
</style>
</head>

<body>
   
<table width="350" border="0" cellpadding="6" cellspacing="1" bgcolor="#D6E0EF" class="a2">
  <tr>
    <td colspan="2" bgcolor="#698CC3"><div align="center" class="STYLE9">数据修改</div></td>
  </tr>
  <form name="form1" action="editok.asp?id=<%=id%>" method="post">
  <tr>
    <td width="86" bgcolor="#FFFFFF"><div align="center"><span class="STYLE5">姓名</span></div></td>
    <td width="237" bgcolor="#FFFFFF"><input name="name" type="text" id="name" value="<%=rs("name")%>" /></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><div align="center" class="STYLE5">地址</div></td>
    <td width="237" bgcolor="#FFFFFF"><input name="addr" type="text" id="addr" value="<%=rs("addr")%>" /></td>
  </tr>
  <tr>
    <td colspan="2" bgcolor="#FFFFFF"><div align="center">
          <input type="submit" name="Submit" value=" 修改 " />
      </div></td>
  </tr></form>
</table>
</body>
</html>

⌨️ 快捷键说明

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