Ajax, "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), refers to a web development technology that creates interactive Web applications.
AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML).
AJAX is not a new programming language, but a new way of using existing standards.
AJAX is the art of exchanging data with the server and updating parts of the Web page without reloading the entire page.
Design a user registration page, when the user enters the registration name, detects whether the user name already exists, if exists, gives the prompt
Let's play index.php first.
welcome.php
<?php
Header ("content-type:text/html;charset=gb2312");
Sleep (1);
$userId =$_get["UserId"];
if ($userId = = "Admin") {
echo "username already exists!";
} else{
echo "This user name can be registered";
}
About PHP and Ajax combined to achieve login verification of the relevant knowledge of small demo to everyone here, I hope to help!