以下是代码片段:
<%
id=request.form("id345")
if id <>"" and isnumeric(id) then
set conn=server.createobject("adodb.connection")
conn.open "DRIVER=Microsoft Access Driver (*.mdb);DBQ="+server.mappath("exam.mdb")exec="delete * from guestbook where id="&id
conn.execute exec
response.write "!!!!记录删除成功!!!!"
else
response.Write("!!!!你的ID值为空!!!!!")
response.End()
end if
%>
OK...是不是很简单
本文来自:php小戴编程技术门户(www.phpxd.com) 详细出处参考:http://www.phpxd.com/jishuwenzhang/2009-02-07/200902072221020.html