add_delete.jsp
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ include file="conn.jsp"%>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <link rel="stylesheet" href="css.css" type="text/css">
  7. <title>删除</title>
  8. </head>
  9. <%
  10. if(session.getAttribute("adminname")==null)
  11. {response.sendRedirect("sorry.jsp");}
  12. %>
  13. <%
  14. String MessageID=new String(request.getParameter("id").getBytes("ISO-8859-1"));
  15. String condition="select * from users where id='"+MessageID+"'";
  16. rs=stmt.executeQuery(condition);
  17. rs.first();
  18. %> 
  19. <body background="img/beijing.gif">
  20. <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  21.   <tr>
  22.     <td>
  23. <form name="form1" method="POST" action="add_delete_operate.jsp?id=<%=MessageID%>">
  24.         
  25.         <table width="100%" border="0" cellspacing="0" cellpadding="0">
  26.           
  27.           <tr>
  28.             <td align="center">
  29. <input type="submit" name="Submit" value="确定删除" style="border:1 solid #BBB9B9;background:#ffffff" class="button"></td>
  30.           </tr>
  31.         </table>
  32.       
  33.        
  34.       </form></td>
  35.   </tr>
  36. </table>
  37. </body>
  38. </html>