ASP问题,20分钟没人答就撤消,高分

来源:百度知道 编辑:UC知道 时间:2024/05/24 11:30:42
建access 库user.mdb 建表 表名:regist 字段 username 文本\password 密码 文本 email 文本

设计一界面功能是删除某一输入的用户名的记录
用ACCESS数据库,不用SQL,不好意思

20分不是高分

连接数据库不给你写了,到网上搜,这里连接名用conn

前台del.html
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<form method="POST" action="del.asp">
<input type="text" name="T1" size="20"><input type="submit" value="提交" name="B1">
</form>
</body>
</html>

后台del.asp
<%
'连接数据库代码
if conn.status=0 then conn.open
conn.execute "delete from regist where username='" & request.form("t1") & "'"
conn.close
set conn=nothing
res