本文整理汇总了PHP中Access::isUserExist方法的典型用法代码示例。如果您正苦于以下问题:PHP Access::isUserExist方法的具体用法?PHP Access::isUserExist怎么用?PHP Access::isUserExist使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Access
的用法示例。
在下文中一共展示了Access::isUserExist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Access
* Date: 9/1/15
* Time: 9:12 PM
*/
$funObj = new Access();
if (isset($_POST['register'])) {
$username = $_POST['username'];
$email = $_POST['email'];
//var_dump($email);
$password = $_POST['password'];
$confirmPassword = $_POST['confirmpassword'];
if (empty($username) || empty($email) || empty($password) || empty($confirmPassword)) {
echo 'No fields can be empty';
} else {
var_dump($email);
if ($password == $confirmPassword) {
$emailcheck = $funObj->isUserExist($email);
//var_dump($email);
if (!$emailcheck) {
$register = $funObj->UserRegister($username, $email, $password);
if ($register) {
//echo "<script>alert('Registration Successful')</script>";
//header("Location:index.php?page=regcomfirm");
include 'includes/regcomfirm.php';
} else {
echo "<script>alert('Registration Not Successful')</script>";
}
} else {
echo "<script>alert('Email Already Exist')</script>";
}
} else {
echo "<script>alert('Password Not Match')</script>";