Home  >  Article  >  Backend Development  >  AJAX username verification_PHP tutorial

AJAX username verification_PHP tutorial

WBOY
WBOYOriginal
2016-07-14 10:07:581075browse

[php]

//This file is register.php, on the client
User registration
Username:
& lt; input type = "Button" Onclick = "Checkname ();" Value = "Verify Username" & GT;
                                                                                                                                                                                                                                                                                                <
                                                                                         
Password:
Email:
Username:
                                                                       
                                                                                         
Password:
Email:
[php]
//This file is registerProcess.php, on the server side
//Receive data
$username = $_GET["username"];
if($username=="shunping"){
echo "Username not available";
}else{
echo "Username available";
}
echo "Username:".$username;//Line 3
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477808.htmlTechArticle[php] //This file is register.php, on the client html head title user registration/title meta http -equiv = content-type content = text/html;charset=utf-8/ script type = text/javascript //Create...
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
Previous article:Yii Framework Development Tutorial Zii Component-Sortable Example_PHP TutorialNext article:Yii Framework Development Tutorial Zii Component-Sortable Example_PHP Tutorial

Related articles

See more