Home > Backend Development > PHP Tutorial > PHP ajax user login verification program code_PHP tutorial

PHP ajax user login verification program code_PHP tutorial

WBOY
Release: 2016-07-13 10:44:37
Original
761 people have browsed it

php ajax implements user login and quickly implements user verification. Friends in need can refer to it.

Core Code

The code is as follows Copy code
 代码如下 复制代码


index.php源码

 代码如下 复制代码
 代码如下 复制代码





PHP Login with jQuery AJAX






 

Login Form


 

   


     
     
   


   


     
     
   


   


     
   


 

   



PHP Login with jQuery AJAX

 

 

Login Form

 
   

               

   

               

   

         

 
   

dogloin.php

 代码如下
 代码如下 复制代码


$is_ajax = $_REQUEST['is_ajax'];
if(isset($is_ajax) && $is_ajax)
{
$username = $_REQUEST['username'];
$password = $_REQUEST['password'];

if($username == 'demo' && $password == 'demo')
{
echo "success";
}
}

?>

复制代码
 
 $is_ajax = $_REQUEST['is_ajax'];
 if(isset($is_ajax) && $is_ajax)
 {
  $username = $_REQUEST['username'];
  $password = $_REQUEST['password'];
  
  if($username == 'demo' && $password == 'demo')
  {
   echo "success"; 
  }
 }
 
?>

http://www.bkjia.com/PHPjc/633097.htmlwww.bkjia.comtrue
http://www.bkjia.com/PHPjc/633097.html
TechArticle
php ajax实现用户登录并且快速实现用户验证,有需要的朋友可参考参考。 核心代码 代码如下 复制代码 script type=text/javascript $(document).ready(...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template