注册 登录
编程论坛 ASP技术论坛

求大神看一下代码。

创可贴1 发布于 2012-09-17 15:12, 778 次点击
<%

id=request.QueryString("id")
if id="" then response.Redirect("index.asp")
set rs = server.CreateObject("adodb.recordset")
exec="select * from [user] where id="&id
rs.open exec,conn,1,1
%>
<%do while not rs.eof%>
<html>
<head>
<title>修改系统</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">

<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body background="images/tbg.JPG">
<body bgcolor="#ffffff" text="#000000" onunload="window.opener.location.reload();">
<p align="center"><font face="宋体" size="2" color="#ff0000">修改模块</font><font size="2"><br><br>
   
  </font><form action="usersave.asp?id=<%=Request("id")%>" "method=post">
  <table width="71%" border="0" cellpadding="0" cellspacing="0" align="center" id="table1">
    <tr>
      <td align="left">
        <p align="justify"><font size="2">姓名:</font></td>
      <td>
        <input type="text" name="姓名" size="20" value="<%=rs("姓名")%>"><font size="2"> </font></td>
    </tr>
。。。
7 回复
#2
wangjy5002012-09-17 17:16
莫名其妙
#3
黄旗2012-09-17 17:31
是要我们程序员来这里找茬的吗?                        孩子别这么无聊哦!
#4
netlin2012-09-17 23:42
楼主,你的问题是什么呢?
#5
创可贴12012-09-18 15:49
要能实现在当前页修改信息,但现在不能把数据库里面的信息显示出来。
#6
青春无限2012-09-18 18:11
学习中
#7
不知1232012-09-20 08:07
set rs = server.CreateObject("adodb.recordset")
exec="select * from [user] where id="&id
rs.open exec,conn,1,1
中的
[user]是否要修改为user?
本人也是初学者,不知是否正确。
#8
痞子钦2012-10-05 04:37
修改程序修改程序
1