asp已经显示出来的信息怎么删除

来源:百度知道 编辑:UC知道 时间:2024/06/21 22:09:17
就是我已经做好的一个用户信息表,我想在每个用户后面加一个删除。怎么做啊,不会。
源码如下,要在那里加东西哦?<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn1.asp"-->
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open"select* from reg",conn,1,1
%>
<%do while not rs.eof%>
<table cellpadding="0" cellspacing="0" bordercolor="#003399">
<tr>
<td width="200"><%=rs("u_name")%></td>
<td width="200"><%=rs("psw")%></td>
<td width="100"><%=rs("sex")%></td>
<td width="200"><%=rs("tel")%></td>
<td width="200"><%=rs("email")%></td>
</tr></table>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>

?<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn1.asp"-->
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open"select* from reg",conn,1,1
%>
<%do while not rs.eof%>
<table cellpadding="0" cellspacing="0" bordercolor="#003399">
<tr>
<td width="200"><%=rs("u_name")%></td>
<td width="200"><%=rs("psw")%></td>
<td width="100"><%=rs("sex")%></td>
<td width="200"><%=rs("tel")%></td>
<td width="200"><%=rs("email")%></td>
<td width="200"><a href="deleteuser.asp?username=<%=rs("U_name")%>">删除</td>

</tr></table>