editquestion.jsp
上传用户:apbaoyuan
上传日期:2021-02-12
资源大小:1015k
文件大小:1k
- <%@page import="java.sql.*"%>
- <%@page import="java.util.*"%>
- <%@page contentType="text/html;charset=GB2312"%>
- <%@include file="opendata.jsp"%>
- <%@include file="check.jsp"%>
- <html>
- <head>
- <title>修改选项</title>
- <link href="style.css" rel=stylesheet>
- </head>
- <% try{
- request.setCharacterEncoding("GB2312");
- int questionid = Integer.parseInt(request.getParameter("questionid"));
- sql = "SELECT Question from Questions where QuestionID ="+questionid;
- rs = smt.executeQuery(sql);
- String question = null;
- while(rs.next())
- question = rs.getString(1);
- rs.close();
- smt.close();
- con.close();
- %>
- <div align=center>
- <hr>
- <center>修改选项
- <form name="form1" method="post" action="modquestion.jsp?questionid=<%=questionid%>">
- <table cellSpacing=0 cellPadding=0 width=250 align=center border=0>
- <tbody>
- <tr>
- <td align=right><input type=text size=90 name=question value = "<%=question%>">
- </td></tr>
- <%
- }
-
- catch (Exception e) {
- e.getStackTrace();
- }%>
- <tr>
- <td><div align=center><input class=buttonface type=submit value=确认 name=Submit>
- <input class=buttonface type=reset value=复位 name=Submit2><br><br>
- </div></td></tr></tbody></table></form>
- </center>
- </div>