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

📄 regedit.jsp

📁 jsp开发的在线答疑系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java" %> 
<html>
	<head>
		<title>注册</title>
		<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
		<link href="../..style" rel="stylesheet"type="text/css">
		<script language="javascript" src="check.js"></script>
		<script language="javascript">
			<!--
			function CheckForm(TheForm)
			{
				trimform(TheForm);
				if(TheForm.regname.value=="")
				{
					alert("请输入你的账号!");
					TheForm.regname.focus();
					return(false);
				}
				if(!chkpasswd(TheForm.pwd.value)||TheForm.pwd.value.length<6||TheForm.pwd.value=="")
				{
					alert("请输入您的密码!");
					TheForm.pwd.focus();
					return(false);
				}
				if(TheForm.name.value=="")
				{
					alert("请填写您的姓名!");
					TheForm.name.focus();
					return(false);
				}
				if(TheForm.sex[0].checked+TheForm.sex[1].checked==0)
				{
					alert("请选择您的性别!");
					return(false);
				}
				if(!chknumber(TheForm.age.value)||TheForm.age.value.length>2||TheForm.age.value=="")
				{
					alert("请填写您的年龄!");
					TheForm.age.focus();
					return(false);
				}
				if(!chkphone(TheForm.tel.value)||TheForm.tel.value=="")
				{
					alert("请填写您的电话号码!");
					TheForm.tel.focus();
					return(false);
				}
				if(TheForm.address.value=="")
				{
					alert("请填写您的地址!");
					TheForm.address.focus();
					return(false);
				}
				if(!chkemail(TheForm.email.value)||TheForm.email.value=="")
				{
					alert("请填写您的邮件地址!");
					TheForm.email.focus();
					return(false);
				}
				return(true);
				
				
			}
			function MM_openBrWindow(theURL,winName,features)
			{
				theURL+=document.all.form1.account.value;
				window.open(theURL,winName,features);
			}
			//-->
			</script>
		</head>
		<body topmargin="0" >
			<font size="2">
				<br>
			</font>
			<form name="form1" method="post" action="Register.jsp"
				onSubmit="return CheckForm(this)">
				<table width="550" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td bgcolor="#FFFFFF" width="551" border="0" cellpadding="3" cellspacing="1" 
							height="100">
							<tr>
								<td colspan="2" bgcolor="0099cc" width="543" height="19">
									<font color="#FFFFFF" size="5">会员注册</font>
								</td>
							</tr>
							<tr><td>
							<p><br>
						</td></tr>
							<tr>
									<td bgcolor="#FFFFFF" width="60" height="19">
										<font size="3">账号:</font>
									</td>
									<td bgcolor="#FFFFFF" width="550" height="19">
										<input type="text" name="regname" id="regname" size="16">
										<font size="3">
											[<a href="javascript:void(0)"
												onClick="MM_openBrWindow('CheckUser.jsp?account=',",'width=200,height=100')">
												<font color=red>检测账号</font>
											</a>]
										(只能使用英文和数字)</font>
									</td>
								</tr>
								<tr>
									<td bgcolor="#FFFFFF" width="90" height="19">
										<font size="3">密码:</font>
									</td>
									<td bgcolor="#FFFFFF" width="463" height="19">
										<input name="pwd" type="password" size="20">
									</td>
								</tr>
									<tr>
									<td bgcolor="#FFFFFF" width="90" height="19">
										<font size="3">姓名:</font>
									</td>
									<td bgcolor="#FFFFFF" width="463" height="19">
										<input name="name" type="text" id="name" size="20">
										<font size="3">(请填写你的真实中文姓名)</font>
									</td>
								</tr>
								<tr>
									<td bgcolor="#FFFFFF" width="90" height="19">
										<font size="3">性别:</font>
									</td>
									<td bgcolor="#FFFFFF" width="463" height="19">
										<input name="sex" type="radio" value="1">
										<font size="3">男</font>
										<input type="radio" name="sex" value="2"><font size="2">
										女</font>
									</td>
								</tr>
									</td>
									<tr>
									<td bgcolor="#FFFFFF" width="90" height="19">
										<font size="3">年龄:</font>
									</td>
									<td bgcolor="#FFFFFF" width="463" height="19">
										<input name="age" type="text" id="age" size="10">
										
									</td>
								</tr>
								<tr>
									<td bgcolor="#FFFFFF" width="90" height="19">
										<font size="3">电话:</font>
									</td>
									<td bgcolor="#FFFFFF" width="463" height="19">
										<input name="tel" type="text" id="tel" size="20">
									</td>
								</tr>
								<tr>
									<td bgcolor="#FFFFFF" width="90" height="19">
										<font size="3">地址:</font>
									</td>
									<td bgcolor="#FFFFFF" width="463" height="19">
										<input name="address" type="text" id="address" size="50">
									</td>
								</tr>
								<tr>
									<td bgcolor="#FFFFFF" width="90" height="19">
										<font size="3">电子邮件:</font>
									</td>
									<td bgcolor="#FFFFFF" width="463" height="20">
										<input name="email" type="text" id="email" size="20">
									</td>
								</tr>
								<tr align="center" valign="middle">
									<td colspan="3" bgcolor="#FFFFFF" width="543" height="21">
										<input type="submit" name="Submit" value="注册">
										<font size="3"></font>
										<input type="button" name="Submit2"
										value="返回"onClick="history.back();">
									</td>
									<tr>
									</table>
								</td>
							</tr></table>
						</form>
					</body>
				</html>
									
			

⌨️ 快捷键说明

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