📄 register.html
字号:
<%@page contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>用户注册</title>
</head>
<script Language="JavaScript">
function check_input(theForm)
{
if (theForm.userid.value == "")
{
alert("请输入用户名。");
theForm.userid.focus();
return (false);
}
if (theForm.password.value == "")
{
alert("请输入密码。");
theForm.password.focus();
return (false);
}
if (theForm.username.value == "")
{
alert("请输入真实姓名。");
theForm.username.focus();
return (false);
}
}
</script>
<body>
<form name="form1" method="post" action="" onsubmit="return check_input(this)">
<div align="center">
<p>用户注册</p>
<table width="364" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="88">用户名:</td>
<td width="276"><input name="userid" type="text" id="userid"></td>
</tr>
<tr>
<td>密码:</td>
<td><input name="password" type="password" id="password"></td>
</tr>
<tr>
<td>真实姓名:</td>
<td><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td>性别:</td>
<td><select name="sex" id="sex">
<option>男</option>
<option>女</option>
</select></td>
</tr>
<tr>
<td>年龄:</td>
<td><input name="age" type="text" id="age"></td>
</tr>
<tr>
<td height="17"> </td>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="reset" value="重置"></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -