- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
regpost.jsp
资源名称:0102010.rar [点击查看]
上传用户:nbluoke
上传日期:2013-08-09
资源大小:4851k
文件大小:3k
源码类别:
教育系统应用
开发平台:
WORD
- <%@ 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"> </td>
- <td class="caption">注册</td>
- <td width="200"> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td width="100" align="center" valign="top"> </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> </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"> </td>
- </tr>
- <tr align="center">
- <td height="60" colspan="5" class="white">copyright© 2003 Examination123</td>
- </tr>
- </table>
- </body>
- </html>