本文整理汇总了PHP中validation::isUserExist方法的典型用法代码示例。如果您正苦于以下问题:PHP validation::isUserExist方法的具体用法?PHP validation::isUserExist怎么用?PHP validation::isUserExist使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类validation
的用法示例。
在下文中一共展示了validation::isUserExist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: time
$ext = $_POST['ext'];
$mail = $_POST['mail'];
$secret = $_POST['secret'];
$password = $_POST['password'];
$cpassword = $_POST['password_confirm'];
#Check For Gender Exist Or No
if (isset($_POST['ugender'])) {
$gender = $_POST['ugender'];
} else {
$gender = '';
}
//echo strlen($fname);
if (trim($name) != "" and trim($roomNo) != "" and trim($secret) != "" and trim($ext) != "" and trim($mail) != "" and trim($password) != "" and trim($cpassword) != "") {
if ($validate->checkMail($mail)) {
if ($validate->checkEqual($password, $cpassword)) {
if (!$validate->isUserExist($mail)) {
if (isset($_FILES["myfile"])) {
if ($validate->checkImage()) {
$pic_name = time() . "_" . $_FILES["myfile"]["name"];
move_uploaded_file($_FILES["myfile"]["tmp_name"], "uploads/users/" . $pic_name);
$putValue = $users->regist($name, $mail, $ext, $pic_name, $password, $roomNo, $secret);
if ($putValue) {
echo "Insert Complete";
header("location:addUser.php?action=New User Added To Our DataBase");
} else {
echo "<div class='alert alert-danger '>Some Thing Wrong happen please Try Again Later</div>";
}
} else {
echo "<div class='alert alert-danger '>Invalied Picture</div>";
}
} else {