⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regpost.jsp

📁 在线考试软件。 在线考试软件详细设计说明书:说明在线测试这一模块各部分的功能和结构
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" pageEncoding="gb2312" %>
<%@ page import="reg"%>
<html>
<head>
<title>注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%
 String ID = new String(request.getParameter("ID").getBytes("ISO8859_1")).trim();
 String username = new String(request.getParameter("username").getBytes("ISO8859_1")).trim();
 String password = new String(request.getParameter("password").getBytes("ISO8859_1")).trim();
 String confirm = new String(request.getParameter("confirm").getBytes("ISO8859_1")).trim();
 String syspower = new String(request.getParameter("syspower").getBytes("ISO8859_1")).trim();
%>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="80" colspan="5"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="120">&nbsp;</td>
          <td class="caption">注册</td>
          <td width="200">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td width="100" align="center" valign="top">&nbsp;</td>
    <td width="1" valign="top"></td>
    <td width="400" align="center" valign="top">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
<jsp:useBean id="regID" class="reg" scope="session"/>
<%
 if(regID.reg(ID,username,password,confirm,syspower))
 {
  out.print("ok");
  String newID = regID.getID() + ""; 
%>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <tr align="center"> 
          <td height="30" colspan="2" bgcolor="#CCCCCC" class="deepred">恭喜您,注册成功!</td>
        </tr>
        <tr> 
          <td width="50%" height="24" align="center" bgcolor="#FFFFFF">ID</td>
          <td align="center" bgcolor="#FFFFFF"><%=ID%></td>
        </tr>
        <tr> 
          <td width="50%" height="24" align="center" bgcolor="#FFFFFF">用户</td>
          <td align="center" bgcolor="#FFFFFF"><%=username%></td>
        </tr>
        <tr> 
          <td width="50%" height="24" align="center" bgcolor="#FFFFFF">密码</td>
          <td align="center" bgcolor="#FFFFFF"><%=password%></td>
        </tr>
        <tr> 
          <td width="50%" height="24" align="center" bgcolor="#FFFFFF">syspower</td>
          <td align="center" bgcolor="#FFFFFF"><%=syspower%></td>
        </tr>
      </table>
<%
  out.print("<br>");
  out.print("<a href=\"login.jsp\">返回</a>");
  out.print("<a href=javascript:window.close()>关闭</a>");
 }else{
  out.print("注册失败!<br>");
  out.print("该用户名已有人使用,请使用另外的用户名!");
  out.print("<a href=javascript:history.go(-1)>返回</a>");
 } 
%>
   </td>
    <td width="1" valign="top"></td>
    <td width="100">&nbsp;</td>
  </tr>
  <tr align="center"> 
    <td height="60" colspan="5" class="white">copyright&copy; 2003 Examination123</td>
  </tr>
</table>
</body>
</html>
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -