📄 reg.jsp
字号:
<%@page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="err.jsp"%>
<html>
<head>
<META NAME="keywords" CONTENT="溢洋 溢洋论坛 xyworker@163.com java forum jsp forum">
<META NAME="description" CONTENT="溢洋 溢洋论坛 xyworker@163.com java forum jsp forum">
<link rel='stylesheet' type='text/css' href='inc/FORUM.CSS'>
<script language="JavaScript">
function Popup(url, window_name, window_width, window_height)
{ settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width="+window_width+",height="+window_height;
NewWindow=window.open(url,window_name,settings); }
function icon(theicon) {
document.input.message.value += " "+theicon;
document.input.message.focus();
}
</script>
<title>溢洋论坛</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckValue()//检查标题内容是否为空值
{
var name=document.all.name.value;
var re=/( )/gi
name=name.replace(re,"")
re=/\</gi
name=name.replace(re,"<")
if(name==""||name.length<1)
{
alert("用户名不能为空");
document.all.name.focus();
return false;
}
document.all.name.value=name;
TheText=document.all.email.value;
var re=/( )/gi
TheText=TheText.replace(re,"")
if(TheText=="")
{
alert("E_Mail地址不能为空");
document.all.email.focus();
return false;
}
if (form1.mobile.value!="")
{
if(checkNumber1(form1.mobile.value)==false)
return false;
}
if (form1.oicq.value!="")
{
if(checkNumber2(form1.oicq.value)==false)
return false;
}
return true;
}
function checkNumber1(TempS)
{
for(Count=0;Count<TempS.length;Count++)
{
TempChar=TempS.substring(Count,Count+1);
RefString="0123456789";
if (RefString.indexOf(TempChar,0)==-1)
{
alert("手机号码有非法字符,请输入数字");
form1.mobile.focus();
return false;
}
}
}
function checkNumber2(TempS)
{
for(Count=0;Count<TempS.length;Count++)
{
TempChar=TempS.substring(Count,Count+1);
RefString="0123456789";
if (RefString.indexOf(TempChar,0)==-1)
{
alert("OICQ有非法字符,请输入数字");
form1.oicq.focus();
return false;
}
}
}
// -->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body text="#0000ff" >
<jsp:include page="inc/public.jsp" flush="true"/>
<table width="760" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#ffffff" width="501"> <a href="../default1.asp"><br>
首页</a>>><a href="index.jsp">溢洋论坛</a>>>注册用户</td>
<td bgcolor="#ffffff" class="post" align="right" width="230"> </td>
</tr></table>
<table border="0" cellspacing="1" cellpadding="3" width="743" bgcolor="#009ACE">
<form method="post" name=form1 action="queryuser.jsp">
<tr bgcolor="#FFFFFF" height="30">
<td colspan="2" height="30" width="731" bgcolor="#9CCFFF">修改资料- 必填的项目:</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="235" class="tablerow" height="25" >用户名称</td>
<td class="tablerow" height="25" width="486">
<input type="text" name="name" size="30" maxlength="25" >
<font color="#FF0000">***不能含有非法字符</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="tablerow" height="25" width="235" bgcolor="#C6EFFF">用户密码</td>
<td class="tablerow" height="25" width="486" bgcolor="#C6EFFF">
<input type="password" name="password" size="30" >
<font color="#FF0000">***长度不能大于12小于6</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="tablerow" height="25" width="235" bgcolor="#C6EFFF">重复密码</td>
<td class="tablerow" height="25" width="486" bgcolor="#C6EFFF">
<input type="password" name="password2" size="30" >
<font color="#FF0000">***长度不能大于12小于6</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="tablerow" height="16" width="235" bgcolor="#FFFFFF">用户性别</td>
<td class="tablerow" height="16" width="486" bgcolor="#FFFFFF">
<input type="radio" name="sex" checked value="男"
>
男 <input type="radio" name="sex" value="女"
>
女 </td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="tablerow" height="1" width="235">E-Mail</td>
<td class="tablerow" height="1" width="486">
<input type="text" name="email" size="30" >
<font color="#FF0000">***</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" height="30" width="731" bgcolor="#9CCFFF">修改资料
- 可选的项目:</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="tablerow" height="1" width="235" bgcolor="#C0EFFE">手机号码</td>
<td class="tablerow" height="1" width="486" bgcolor="#C0EFFE">
<input type="text" name="mobile" size="30">
</td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -