<% if session("admin")="" then response.redirect "index.asp" end if lid=request("id") if isnumeric(lid)=false then response.write "" response.end end if sql="select * from data where id=cint('"&lid&"')" set rs=server.createobject("adodb.recordset") rs.open sql,connstr,3,2 if not rs.eof then rs.delete rs.update response.redirect "index.asp" end if %>