?? register.jsp
字號:
<%@ page language="java" pageEncoding="gbk"%>
<%
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 type="text/javascript" language="javascript">
function check()
{
var x = document.form;
if(x.account.value=="")
{
alert("請?zhí)顚憥ぬ?");
x.account.focus();
return false;
}else if(x.password.value=="")
{
alert("請?zhí)顚懨艽a!");
x.password.focus();
return false;
}else if(x.agree.checked==false)
{
alert("請選擇我同意!");
x.agree.focus();
return false;
}
}
</script>
<base href="<%=basePath%>">
<title>My JSP 'Register.jsp' starting page</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" href="mm_health_nutr.css" type="text/css" />
</head>
<body bgcolor="#F4FFE4">
<form action="servlet/RegisterServlet" name="form" method="get"
onSubmit="return check()">
<table height="333" cellpadding="3">
<tr>
<td rowspan="5">
<img src="mm_spacer.gif" alt="" width="100" height="1" border="0" />
</td>
</tr>
<tr>
<td>
<font color="red">以下帶*號的為必填項</font>
</td>
</tr>
<tr>
<td>
<table bordercolor="#CCCCCC" width="555" height="188" style="">
<tr>
<td align="center">
帳號:
</td>
<td>
<input type="text" name="account">
<font color="red">*</font>
</td>
</tr>
<tr>
<td colspan="2">
<hr size="1px" color="#CCCCCC">
</td>
</tr>
<tr>
<td align="center">
密碼:
</td>
<td>
<input type="password" name="password">
<font color="red">*</font>
</td>
</tr>
<tr>
<td colspan="2">
<hr size="1px" color="#CCCCCC">
</td>
</tr>
<tr>
<td align="center">
昵稱:
</td>
<td>
<input type="text" name="name">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<input type="checkbox" checked="checked" name="agree">
我已閱讀并同意《
<a href="Register.jsp">網站交易條款</a>》和《
<a href="Register.jsp">網站用戶使用條款</a>》
</td>
</tr>
<tr>
<td align="center">
<input type="submit" value=" 注 冊 " name="Submit">
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -