zoukankan      html  css  js  c++  java
  • 系统登陆简单的密码验证

       <div class="fm-item">
    	   <label for="logonId" class="form-label">EOA系统登陆:</label> 
           <input type="text" class="form-control deng i-text" id="username" placeholder="请输入用户名" ajaxurl="demo/valid.jsp"  datatype="s6-18" >   
           <div class="ui-form-explain"></div>
      </div>
      
      <div class="fm-item">
    	   <label for="logonId" class="form-label">登陆密码:</label>
    	   <input type="password" value="" maxlength="100" id="password" class="i-text form-control deng" datatype="*6-16" nullmsg="请设置密码!">   
           <div class="ui-form-explain"></div>
      </div>
        
      <div class="fm-item">
    	   <label for="logonId" class="form-label"></label>
    	   <input type="submit" value="" tabindex="4" id="send-btn" class="btn-login" > 
           <div class="ui-form-explain"></div>
      </div>
              <div class="fom">
            	<div id="gai"><a href="xiugma.php" style="color:#FFF">忘记密码?</a></div>
                <div id="gai"><a href="zhuce.php" style="color:#FFF">注册</a></div>
            </div>
    
    <script>
    
     $(document).ready(function(){
      $("#send-btn").click(function(){
    	 var uid =$("#username").val();
    	 var pwd = $("#password").val(); 
    	 $.ajax({
    		 url:"denglu.php",
    		 data:{uid:uid,pwd:pwd},
    		 type:"POST",
    		 dataType:"TEXT",
    		 success: function(data){
    			 if(data.trim()=="ok")
    			  {
    			     window.location.href="shouye.php"; 
    			  }
    				else if(data.trim()=="isok")
    				{
    					 alert("用户还未审核通过");
    				}
    			  else
    			  {
    			    alert("用户名或密码输入错误"); 
    			  }
    
    			 }
    		 })
    	 })
    });
     
     
    </script>
    
  • 相关阅读:
    RM报表 实际打印的判断
    ehlib 如何用代码,选中checkbox呢?
    [CF632A]Grandma Laura and Apples
    [洛谷P3693]琪露诺的冰雪小屋
    [CF1065A]Vasya and Chocolate
    [UOJ #52]【UR #4】元旦激光炮
    [UOJ #48]【UR #3】核聚变反应强度
    [UOJ #51]【UR #4】元旦三侠的游戏
    [洛谷P1401]城市
    [洛谷P4722]【模板】最大流 加强版 / 预流推进
  • 原文地址:https://www.cnblogs.com/yi11/p/7008864.html
Copyright © 2011-2022 走看看