【JSP开源代码栏目提醒】:网学会员--在 JSP开源代码编辑为广大网友搜集整理了:fail.jsp绩等信息,祝愿广大网友取得需要的信息,参考学习。
<%@ page contentType="text/html;charset=gb2312"%>
<jsp:useBean id="mycheck" scope="session" class="dbms.check" />
<jsp:useBean id="trans" scope="session" class="dbms.charConvert" />
<jsp:useBean id="sqlbean" scope="session" class="dbms.Conn" />
<%@ page language="Java" import="java.sql.*" %>
<%! String netname,password1,password2,question,answer,name,mail,sex,birthyear,birthmonth,birthday,edu,hangye,levels,salary,marry,workkind,province,city,addrroom,addrems,zone,tel,cardkind,cardnum; %>
<%! int rights; %>
<%! String presn; int xinyu,ordernum,refusenum,successnum,iftrust; %>
<%! String reason; %>
<%
netname=trans.convert(request.getParameter("netname"));
password1=trans.convert(request.getParameter("password1"));
password2=trans.convert(request.getParameter("password2"));
question=trans.convert(request.getParameter("question"));
answer=trans.convert(request.getParameter("answer"));
name=trans.convert(request.getParameter("name"));
mail=trans.convert(request.getParameter("mail"));
sex=trans.convert(request.getParameter("sex"));
birthyear=trans.convert(request.getParameter("birthyear"));
birthmonth=trans.convert(request.getParameter("birthmonth"));
birthday=trans.convert(request.getParameter("birthday"));
edu=trans.convert(request.getParameter("edu"));
hangye=trans.convert(request.getParameter("hangye"));
levels=trans.convert(request.getParameter("levels"));
salary=trans.convert(request.getParameter("salary"));
marry=trans.convert(request.getParameter("marry"));
workkind=trans.convert(request.getParameter("workkind"));
province=trans.convert(request.getParameter("province"));
city=trans.convert(request.getParameter("city"));
addrroom=trans.convert(request.getParameter("addrroom"));
addrems=trans.convert(request.getParameter("addrems"));
zone=trans.convert(request.getParameter("zone"));
tel=trans.convert(request.getParameter("tel"));
cardkind=trans.convert(request.getParameter("cardkind"));
cardnum=trans.convert(request.getParameter("cardnum"));
%>
<html>
<head>
<title>用户注册失败...</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
<!-- Begin validation script
function checkdata() {
if ( document.memberform.birthyear.value <= 1900 ) {
alert("\请输入正确的生日年份!!")
}
else if (document.memberform.birthmonth.value < 1 || document.memberform.birthmonth.value > 12 ) {
alert("\请输入正确的生日月份!!")
}
else if (document.memberform.birthday.value < 1 || document.memberform.birthday.value > 31) {
alert("\请输入正确的生日日期!!")
}
else {
return true;
}
return false;
}
//----------------------------------------
// End of validation script -->
</script>
</head>
<link rel="stylesheet" href="../1.css">
<body bgcolor="#FFFFFF">
<table border="0" width="750" cellspacing="0" cellpadding="0">
<tr>
<td width="100"></td>
<td valign="top" width="525"> <br>
<br>
<br>
<form action="adduser.jsp" method="POST" name=memberform onSubmit="return checkdata()">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#CC3333">
<td> <font color="#FFFFFF">会员代号及密码 </font></td>
</tr>
</table>
<br>
<p align="center"><font color="#CC3333">错误!请检查您填写的内容</font></p>
<table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr valign="top">
<td width="30%" valign="top" align="RIGHT" bgcolor="#F0F0F0" height="25">会员代号
</td>
<td width="70%" height="25">
<input type=text name="netname" size=16 maxlength=16 value="<%= netname %>">
<br>
<%
if(netname.equals("")||netname.length()<2||netname.length()>16)
{
%>
<font color="#CC3333">请正确填写会员代号</font>
<%
}
else
{
ResultSet RS=sqlbean.executeQuery("SELECT netname FROM userinfo where netname='"+netname+"'");
if(RS.next())
{
%>
<font color="#CC3333">此会员代号已有人注册,请更换其它代号</font>
<%
}
RS.close();
}
%>
</td>
</tr>
<tr valign="top">
<td height="10"></td>
<td height="10"> <font color=#666666>合法的会员代号应该由</font><font color="#CC0000"><b>汉字、a-z的小写英文字母、0-9的数字或下划线</b></font><font color=#666666>组成,会员代号长度应在</font><font color="#CC0000"><b>2-16个字符</b></font><font color=#666666>之间[一个英文字母或数字算一个字符,一个汉字算两个字符]
,请勿使用空白键,请选择不会引起歧义的会员代号。<br>
例如:阿en_007。</font><font color="#CC0000">推荐使用中文会员代号!</font></td>
</tr>
<tr valign="top">
<td valign="top" align="RIGHT" bgcolor="#F0F0F0" height="25">密码 </td>
<td height="25">
<input type="password" name="password1" maxlength="16" size="12"
value="">
<br>
<%
if(password1.equals("")||password1.length()<4)
{
%>
<font color="#CC3333">请正确输入一个密码</font>
<%
}
%>
</td>
</tr>
<tr valign="top">
<td height="10"></td>
<td height="10"><font color="#666666">密码可使用任何英文字母及阿拉伯数字组合,<b><font color="#CC0000">不得少于4个字符,并区分英文字母大小写。</font></b>例如:
JohN123DoLe。</font></td>
</tr>
<tr valign="top">
<td valign="top" align="RIGHT" bgcolor="#F0F0F0" height="25">请再次输入密码
</td>
<td height="25">
<input type="password" name="password2" maxlength="16" size="12"
value="">
<br>
<%
if(!password1.equals("")&&(password2.equals("")||!password1.equals(password2)))
{
%>
<font color="#CC3333">再次输入的密码与原密码不一致,请重新输入</font>
<%
}
%>
</td>
</tr>
<tr>
<td height="10"> </td>
<td height="10"></td>
</tr>
<tr valign="top">
<td align="right" width="30%" bgcolor="#F0F0F0" height="25">查询密码问题
</td>
<td height="25">
<input type=text name="question" size=30 maxlength=80 value="<%= question %>">
<br>
<%
if(question.equals("")||question.length()>50)
{
%>
<font color="#CC3333">请正确输入密码查询问题</font>
<%
}
%>
</td>
</tr>
<tr>
<td height="10"> </td>
<td height="10"></td>
</tr>
<tr valign="top">
<td align="right" width="30%" bgcolor="#F0F0F0" height="25">查询密码答案
</td>
<td height="25">
<input type=text name="answer" size=30 maxlength=80 value="<%= answer %>">
<br>
<%
if(answer.equals("")||answer.length()>50)
{
%>
<font color="#CC3333">请正确输入查询密码答案</font>
<%
}
%>
</td>
</tr>
<tr valign="top">
<td height="10"></td>
<td height="10"><font color="#666666">当您忘记密码后,可以通过密码问题和答案来查询。问题和密码必须在50个字符之内.[一个英文字母或数字算一个字符,一个汉字算两个字符]
</font></td>
</tr>
</table>
<hr align="center">
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#CC3333">
<td> <font color="#FFFFFF">个人资料 </font></td>
</tr>
</table>
<br>
<table border="0" width="100%" cellpaddi
上一篇:
e_statistic.jsp
下一篇:
成本管理背景指导