Home > Backend Development > PHP Tutorial > AJAX username verification_PHP tutorial

AJAX username verification_PHP tutorial

WBOY
Release: 2016-07-14 10:07:58
Original
1196 people have browsed it

[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...
source:php.cn
Previous article:Yii Framework Development Tutorial Zii Component-Sortable Example_PHP Tutorial Next article:Simple code to implement infinite classification tree_PHP tutorial
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
Latest Articles by Author
Latest Issues
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template