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>
    
  • 相关阅读:
    6、方法
    5、封装
    4、循环
    3、判断
    2、基本语法
    1、基本框架
    CodeForces 681C Heap Operations(模拟)
    CodeForces 682C Alyona and the Tree(广搜 + 技巧)
    URAL 2099 Space Invader题解 (计算几何)
    HDU 5833 (2016大学生网络预选赛) Zhu and 772002(高斯消元求齐次方程的秩)
  • 原文地址:https://www.cnblogs.com/yi11/p/7008864.html
Copyright © 2011-2022 走看看