📄 registinput.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>请输入注册信息!</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<link rel="stylesheet" href="css/common.css">
<script language="Javascript" src="pub/js/common.js"></script>
<script>
function checkValues( form )
{
var checked = [ [form.name, "请输入用户名!" ],
[form.password, "请输入密码!" ],
[form.repassword, "请输入确认密码!" ] ];
if( !isRequired( checked ) )
return false;
if( form.password.value!=form.repassword.value )
{
alert( "密码和确认密码不一致,请重新输入!" );
form.password.value = "";
form.repassword.value = "";
form.password.focus();
return false;
}
return true;
}
function logon()
{
window.location = "index.jsp";
}
</script>
</head>
<body>
<center>
<h1>用户注册</h1>
<br>
<table width="300">
<tr>
<td colspan="2" class="warnning">请输入注册信息!</td>
</tr>
<form name="main" method="post" action="regist.jsp" onsubmit="return checkValues( this );">
<tr>
<td align="right">用户名:</td>
<td><input type="text" name="name"> *</td>
</tr>
<tr>
<td align="right">密码:</td>
<td><input type="password" name="password"> *</td>
</tr>
<tr>
<td align="right">确认密码:</td>
<td><input type="password" name="repassword"> *</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" name="regist" value="注册">
<input type="reset" name="reset" value="重填">
<input type="button" name="Logon" value="返回" onclick="logon();">
</td>
</tr>
<tr>
<td align="center" colspan="2">
<p> <p>
<img src="img/register.gif" height="120">
</td>
</tr>
</form>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -