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

📄 regedit.jsp

📁 整个系统采用MVC开发模式
💻 JSP
字号:
<%@ page language="java" import="java.util.*" 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>
    <base href="<%=basePath%>">
    <link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
    <title>用户注册</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" type="text/css" href="styles.css">
	-->
	<script language="javascript">
	var XMLHttpReq=false;
 		//创建一个XMLHttpRequest对象
 		function createXMLHttpRequest(){
 				if(window.XMLHttpRequest){ //Mozilla 
 					XMLHttpReq=new XMLHttpRequest();
 					}
 					else if(window.ActiveXObject){
 						try{
 							XMLHttpReq=new ActiveXObject("Msxml2.XMLHTTP");
 							}catch(e){
 								try{
 									XMLHttpReq=new ActiveXObject("Microsoft.XMLHTTP");
 									}catch(e){}
 									}
 								}
 							}
 		//发送请求函数
 		function send(url){
 		
 			createXMLHttpRequest();
 			XMLHttpReq.open("GET",url,true);
 			XMLHttpReq.onreadystatechange=proce;   //指定响应的函数
 			XMLHttpReq.send(null);  //发送请求
 			}
 		function proce(){
 			 if(XMLHttpReq.readyState==4){ //对象状态
 				if(XMLHttpReq.status==200){//信息已成功返回,开始处理信息
 			
 				var res=XMLHttpReq.responseXML.getElementsByTagName("content")[0].firstChild.data;
 			
 				nameerror.innerHTML=res;
 				
 				}
 					}
 					}
 		//身份验证 
 		function check(){
 		
 			var name=document.form1.username.value;
 			
 			var nameerror=document.getElementById("nameerror");
 			
 				if(name.length<=0){
 					nameerror.innerHTML="用户名不能为空!";
 					}
 					else{
 						send('check?name='+name);
 						}
 					}
 					
  function checkpwd(){
  var pw1=document.form1.pwd1.value;
  var pw2=document.form1.pwd2.value;
  var error=document.getElementById("passworderror");
   if(pw1.length<=0||pw2.length<=0){
       error.innerHTML="密码不能为空!";
       }
       else if(pw1!=pw2){
       error.innerHTML="两次输入密码不一致!";
       }
    
  }
  </script>
  </head>
  
  <body>
  <div>
			<div
				style="position: absolute; top: 0px; left: 0px;height: 200px; width: 824px; border-top: 0px solid blue; 
				border-bottom: 0px solid blue; border-left:0px solid blue; border-right: 0px solid blue;margin-left:10%;margin-right:10%">

				<div style="height: 120px; width:1000px;">
				
					<div style="float:left; width: 285px;">
						<UL style="MARGIN-TOP: 13px; ">
							<IMG src="temp.files/logo.gif" border=0>
						</UL>
					</div>
					<div style="float: left;">
						<UL style="MARGIN-TOP: 18px">
							<FONT color=#cc0000>本站58万种现货图书!特价图书4折封顶!</FONT>
						</UL>
						<UL style="MARGIN-TOP: 18px">
							<A href="frame.htm"><IMG
									src="temp.files/index.jpg" align=absBottom> </A>
							<A href="frame.htm"><IMG
									src="temp.files/book.jpg" align=absBottom> </A>
							<A href=""><IMG
									src="temp.files/pifa.jpg" align=absBottom> </A>
						</UL>
					</div>
					<div style="float: left;">
						<UL style="MARGIN-TOP: 8px">
							<A href="Buy.jsp" alt="购物车"><IMG
									id=IMG1 alt=查看您已订购的图书 src="temp.files/shopcar.jpg"
									border=0 name=IMG1>
							</A>
							<br>
							<A href="Buy.jsp">购物车</A>
						</UL>

					</div>
					<div style="float: left;">
						<UL style="MARGIN-TOP: 8px">
							<A href="Regedit.jsp"
								target=_blank><IMG alt=注册三方图书网会员,买特价打折书
									src="temp.files/shopshow.jpg" border=0>
							</A>
							<br>
							<A href="Regedit.jsp"
								target=_blank>注册会员</A>
						</UL>

					</div>
					<div style="float: left;">
						<UL style="MARGIN-TOP: 8px">
							<A href="my_Account.jsp"><IMG
									alt=查看您的个人帐户 src="temp.files/onlinehelp.jpg" border=0>
							</A>
							<br>
							<A href="my_Account.jsp"
								target=_blank>我的帐户</A>
						</UL>
					</div>
					<div style="float: left;width:285px;">
						<UL style="MARGIN-TOP: 13px">
							<A href="frame.htm" target=_blank><IMG
									alt=欢迎光临三方图书网 src="temp.files/logo.gif" border=0>
							</A>
						</UL>
					</div>
				</div>
		<DIV class=br>&nbsp;</DIV>
			<div style="absolute; top: 100px;">	
      <form style="margin:2px 0 0 0;" action="reg" name=form1 method=post>
      <table align="center" bgcolor="#ddddcc" border="0" cellpadding="0" cellspacing="0" width="85%">
         <tr><td>用户名</td><td><input type=text name=username onblur="check()"></input></td><td><span id="nameerror" ></span></td></tr>
         <br><tr><td>密码</td><td><input type=password name=pwd1></input></td><td></td></tr>
         <br><tr><td>密码确认</td><td><input type=password name=pwd2 onblur="checkpwd()"></input></td><td><span id="passworderror" ></span></td></tr>
         <br><tr><td>电话</td><td><input type=text name=phone></input></td><td></td></tr>
         <br><tr><td>地址</td><td><input type=text name=addr></input></td><td></td></tr>
         <br><tr><td>电子邮件</td><td><input type=text name=email></input></td><td></td></tr>
         <br><tr><td></td><td><input type=submit value="提交"/><input type=reset value="清空"></input></td><td></td></tr>
      </table> </form>
    </div>
  </body>
</html>

⌨️ 快捷键说明

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