following is name.php and last article is regist.html,above picture reveal the whole details,
<?php
/*
info:验证帐号是否己经存在的接口,获取用户输入的表单数据
*/
$x = $_POST["uname"];
if($x == "admin" || $x == "manager"){
echo "帐号己经被使用";
} else {
echo "帐号可用";
}