PHP and Ajax combined to implement a small Demo of Logon verification, and phpajax combined with demo
AJAX is "Asynchronous Javascript And XML" (Asynchronous JavaScript And XML), which is a Web page development technology used to create interactive web applications.
AJAX = Asynchronous JavaScript and XML (Asynchronous JavaScript and XML ).
AJAX is not a new programming language, but a new method that uses existing standards.
AJAX is the art of exchanging data with the server and updating some webpages without reloading the entire page.
Design a user registration page. When the user enters the Registration Name, check whether the user name already exists. If yes, give a prompt
First, type index. php.
<Html>
Welcome. php
<? Php header ("content-type: text/html; charset = gb2312"); // sleep (1); $ userId = $ _ GET ["userId"]; if ($ userId = "Administrator") {echo "user name already exists! ";}Else {echo" this user name can be registered ";}?>
I would like to introduce the knowledge of combining PHP and Ajax to implement the logon verification Demo. I hope it will be helpful to you!
Articles you may be interested in:
- Php session application instance logon Verification
- Php cookie logon verification sample code
- Jquery ajax login verification implementation code
- JQuery. ajax User Logon Verification Code
- Php automatic login authentication mechanism implementation code
- PHP code for session sharing and login verification through session id
- S2SH integrates JQuery + Ajax to implement the login verification function and code
- JQuery + AJAX: Mask Layer logon verification interface (with source code)
- Ajax asynchronous login and Verification