<!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>
</head>
<body>
<form id="form1" name="form1" method="post" action="sjxg.asp">
<label>
<div align="center">用户名:
<input name="qq" type="text" id="id" value="<%=rs("yhm")%>" />
</div>
</label>
<p align="center">
<label>邮件:
<input name="aa" type="text" id="id" value="<%=rs("mam")%>" />
</label>
</p>
<p align="center">
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</p>
</form>
</body>
</html>
<!--#include file="conn.asp"-->
<%
id=request("id")
sql="select * from sjdq where id="&id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs("yhm")=request.form("yhm")
rs("mam")=request.form("mam")
rs.update
rs.close
response.write "<script>alert('修改成功!');window.location.href='index.asp';</script>"
%>
<!--#include file="conn.asp"-->
求conn.asp里面的代码
以下是数据库的资料:
数据库名称:shuju.mdb
表名:sjdq
字段:yhm
字段:mam