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

📄 reg_form.jsp

📁 用java开发的一个简单的手机购物网站 能够实现购物车功能 收索功能 下定单
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" errorPage="err.jsp?msg=未知错误" %>
<html>
    <head>
        <title>在线书店-用户注册</title>
        <script language='javascript'>
<!--
function RgTest() { 
    if (document.form.name.value == "") {
        window.alert("请输入用户名!");
        document.form.name.focus();
        return false;
    }
    if (document.form.password.value == "") {
        window.alert("请输入密码!");
        document.form.password.focus();
        return false;
    }
    if (document.form.password.value != document.form.password_c.value) {
        window.alert("密码和确认密码不同!");
        document.form.password.focus();
        return false;
    }
    if (document.form.sex.value == 0) {
        window.alert("请输入性别!");
        document.form.sex.focus();
        return false;
    }
    if (document.form.address.value == "") {
        window.alert("请输入地址!");
        document.form.address.focus();
        return false;
    }
    if (document.form.telephone.value == "") {
        window.alert("请输入联系电话!");
        document.form.telephone.focus();
        return false;
    }
    if (document.form.email.value == "") {
        window.alert("请输入邮箱地址!");
        document.form.email.focus();
        return false;
    }
    return true;
}
-->
        </script>
        <style type="text/css">
<!--
body {
	font-family: "华文中宋";
	font-size: 24px;
	font-style: normal;
}
table {
	font-family: "华文中宋";
	font-size: 20px;
	font-style: normal;
}
-->
        </style>
                <style type="text/css">
<!--
.editbox { background: #ccddff; border-bottom: #333333 1px solid; border-left: 0px; border-right: 0px; border-top: 0px; color: #333333; cursor: text; font-family: "Arial"; font-size: 9pt; height: 20px; padding: 1px}

.button { background: #F2F2F2; border: #333333 1px solid; color: #333333; cursor: hand; font-size: 9pt; height: 20px; padding: 1px}
-->
</style>
    </head>
    <body bgcolor="#66CCFF">
	<jsp:include page="header.jsp" />
    <div align="center">
      <p>新用户注册
</p>
      <form name="form" method="post" action="register.jsp" >
        <table width="300" border="0" align="center">
          <tr>
            <td width="100">用户名</td>
            <td width="200"><input name="name" type="text" id="name" class="editbox" size="30"></td>
          </tr>
          <tr>
            <td>密码</td>
            <td><input name="password" type="password" id="password" class="editbox" size="30"></td>
          </tr
          ><tr>
            <td>密码确认</td>
            <td><input name="password_c" type="password" id="password_c" class="editbox" size="30"></td>
          </tr>
          <tr>
            <td>性别</td>
            <td><input name="sex" type="text" id="sex" class="editbox" size="30"></td>
          </tr>
          <tr>
            <td>地址</td>
            <td><input name="address" type="text" id="address" class="editbox" size="30"></td>
          </tr>
          <tr>
            <td>联系电话</td>
            <td><input name="telephone" type="text" id="telephone" class="editbox" size="30"></td>
          </tr>
          <tr>
            <td>E-mail</td>
            <td><input name="email" type="text" id="email" class="editbox" size="30"></td>
          </tr>
		          <tr align="center">
            <td colspan="2"><input type="submit" name="Submit" value="提交" onclick="return RgTest()" class="button">
                      <input type="reset" name="Submit2" value="重置" class="button">              </td>
          </tr>
        </table>
      </form>
    </div>
    </body>
    <jsp:include page="footer.jsp" />
</html>

⌨️ 快捷键说明

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