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

📄 register.jsp

📁 jsp做的购物网站
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>悠游网用户注册</title>
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {
	color: #0000FF;
	font-size: 18px;
}
.style3 {
	color: #000000;
	font-family: "隶书";
	font-size: 22px;
}
-->
</style>
<SCRIPT language=JavaScript>
function formCheck() { 
	if (document.form2.name.value == "") { 
		alert("Please put in a name.");
		return false;
	} 
	if (document.form2.email.value == "") { 
		alert("Please put in a Email adress.");
		return false;
	}
	if(document.form2.pwd.value==""){
		alert("Please input password!");
		return false;
	}
	if (document.form2.pwd.value!=document.form2.conformPwd.value) { 
		alert("Please input the same password.");
		return false;
	}
	//怎么验证用户名唯一不唯一呢?
}
</SCRIPT>
</head>

<body>
<%
/*if(!session.isNew())
	session.removeAttribute(user);
	*/
%>	
<div align="center">
  <form name="form2" method="post" action="./newUserConform.jsp">
    <table width="388" border="1" align="center" cellpadding="0" cellspacing="0">
        <tr bgcolor="#FF9900">
        <th height="26" colspan="3" valign="top" scope="col"><div align="center" class="style2 style3">你即将成为悠游网的悠友啦!</div></th>
      </tr>
      <tr bgcolor="#FFCC00">
        <th width="133" height="18" valign="top" scope="col"><div align="left">用户名:</div></th>
        <th width="230" scope="col"> <div align="left">
            <input name="name" type="text" size="28">
        </div></th>
        <td width="17"><div align="left"><span class="style1">*</span></div></td>
      </tr>
      <tr bgcolor="#FFCC00">
        <td height="18" valign="top"><div align="left"><strong>口 令:</strong></div></td>
        <td><div align="left">
            <input name="pwd" type="password" size="30">
        </div></td>
        <td><div align="left"><span class="style1">*</span></div></td>
      </tr>
      <tr bgcolor="#FFCC00">
        <td height="18"  ><div align="left"><strong>确认口令:</strong></div></td>
        <td scope="col"><div align="left">
            <input name="conformPwd" type="password" size="30" >
        </div></td>
        <td><div align="left"><span class="style1">*</span></div></td>
      </tr>
      <tr bgcolor="#FFCC00">
        <td height="23"  ><div align="left"><strong>用户类别:</strong></div></td>
        <td valign="top" scope="col"><div align="left">
          <select name="type" >
            <option value="1" selected>消费者</option>
            <option value="2">企业商户</option>
           
          </select>
</div></td>
        <td><div align="left"><span class="style1">*</span></div></td>
      </tr>
      <tr bgcolor="#FFCC00">
        <td height="18"  ><div align="left"><strong>E-mail:</strong></div></td>
        <td scope="col"><div align="left">
            <input name="email" type="text" size="28">
        </div></td>
        <td><div align="left"><span class="style1">*</span></div></td>
      </tr>
      <tr bgcolor="#FFCC00">
        <td height="23" colspan="3"><div align="center"> </div>
            <div align="center">
              <input type="submit" name="Submit" value="提交" onMouseUp="return formCheck();">
              <input type="reset" name="reset"value="清空">
          </div></td>
      </tr>
      <tr bgcolor="#FFCC00">
        <td height="15" colspan="3"><div align="center">欢迎您的加盟!!</div></td>
      </tr>
    </table>
  </form>
  </div>
  <h4><div align=center><a href=../login.jsp>返回</a></div></h4>
</body>
</html>

⌨️ 快捷键说明

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