📄 1044ed27ee87001d1657cff6aa0c1152
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="javascript">
function checkreg()
{
var f=document.forms["reg"];
if(f.username.value==""){
alert("请输入用户名!!");
f.username.focus();
return false;
}
if(f.sex.value==""){
alert("请输入性别!!");
f.sex.focus();
return false;
}
if(f.password.value==""){
alert("请输入密码!!");
f.password.focus();
return false;
}
if(f.confpassword.value==""){
alert("请输入确认密码!!");
f.confpassword.focus();
return false;
}
if(f.password.value!=f.confpassword.value)
{
alert("两次密码不一致,请确认!!");
f.password.value="";
f.confpassword.value="";
f.password.focus();
return false;
}
}
</script>
<base href="<%=basePath%>">
<title>新用户注册</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<br>
<div align="center">
<font color="purple" size="6" face="宋体">新用户注册</font>
<br>
</div>
<form name="reg" method="post" action="Register" onSubmit="return checkreg();">
<table align="center">
<tr>
<td align="right">
登陆名称:
</td>
<td><input type="text" name="username"></td>
<td><input type="button" value="检测用户是否存在" onClick="check()">
<font color="red">*</font></td>
</tr>
<tr>
<td align="right">
登陆密码:
</td>
<td colspan="2"><input type="password" name="password">
<font color="red">*</font></td>
</tr>
<tr>
<td align="right">
密码确认:
</td>
<td colspan="2"><input type="password">
<font color="red">*</font></td>
</tr>
<tr >
<td align="right">
性 别:
</td>
<td colspan="2"><input type="radio" name="r">男
   <input type="radio" name="r" >女
</td>
</tr>
<tr>
<td align="right">
QQ:
<td colspan="2"><input type="text">
</td>
</tr>
<tr>
<td align="right">
E-mail:
<td colspan="2"><input type="text">
<font color="red">*</font></td>
</tr>
<tr >
<td align="right" valign="top">
兴趣爱好:
</td>
<td><input type="checkbox" >计算机编程</td>
<td><input type="checkbox" >阅读书籍</td>
</tr>
<tr>
<td>
</td>
<td><input type="checkbox" >上网冲浪</td>
<td ><input type="checkbox">电脑游戏</td>
</tr>
<tr >
<td>
</td>
<td><input type="checkbox">逛街购物</td>
<td ><input type="checkbox">影音娱乐</td>
</tr>
<tr>
<td>
</td>
<td><input type="checkbox">医疗保健</td>
<td><input type="checkbox" >家居生活</td>
</tr>
<tr>
<td>
</td>
<td><input type="checkbox">旅游放假</td>
<td><input type="checkbox">体育运动</td>
</tr>
<tr >
<td align="right">
联系电话:
</td>
<td colspan="2"><input type="text" name="tel"></td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" name="submitS" value="提交" onclick="tijiao()">
    <input type="reset" value="重置">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -