Home  >  Article  >  Web Front-end  >  AJAX example code based on JQuery framework_jquery

AJAX example code based on JQuery framework_jquery

WBOY
WBOYOriginal
2016-05-16 18:42:46929browse

index.html

Copy code The code is as follows:


< head>
jQuery Ajax Demonstration






Enter name:


Enter password:









login.php
Copy code The code is as follows:

echo json_encode(array ('username'=>$_REQUEST['username'],'password'=>$_REQUEST['password']));
?>
Statement:
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