示例#1
0
    } else {
        // Registration Failed
        echo "<script>alert('Emailid / Password Not Match')</script>";
    }
}
if ($_POST['register']) {
    $username = $_POST['username'];
    $emailid = $_POST['emailid'];
    $password = $_POST['password'];
    $ngo = $_POST['ngo_name'];
    $city = $_POST['city_name'];
    $confirmPassword = $_POST['confirm_password'];
    if ($password == $confirmPassword) {
        $email = $funObj->isUserExist($emailid);
        if (!$email) {
            $register = $funObj->UserRegister($username, $emailid, $password, $ngo, $city);
            if ($register) {
                echo "<script>alert('Registration Successful')</script>";
            } else {
                echo "<script>alert('Registration Not Successful')</script>";
            }
        } else {
            echo "<script>alert('Email Already Exist')</script>";
        }
    } else {
        echo "<script>alert('Password Not Match')</script>";
    }
}
?>
  
<!DOCTYPE html>  
示例#2
0
        echo "<script>alert('Emailid / Password Not Match')</script>";
    }
}
if ($_POST['register']) {
    $username = $_POST['username'];
    $emailid = $_POST['emailid'];
    $password = $_POST['password'];
    $ngo = $_POST['ngo_name'];
    $city = $_POST['city_name'];
    $country = $_POST['country'];
    $state = $_POST['state'];
    $confirmPassword = $_POST['confirm_password'];
    if ($password == $confirmPassword) {
        $email = $funObj->isUserExist($emailid);
        if (!$email) {
            $register = $funObj->UserRegister($username, $emailid, $password, $ngo, $city, $country, $state);
            if ($register) {
                echo "<script>alert('Registration Successful')</script>";
            } else {
                echo "<script>alert('Registration Not Successful')</script>";
            }
        } else {
            echo "<script>alert('Email Already Exist')</script>";
        }
    } else {
        echo "<script>alert('Password Not Match')</script>";
    }
}
?>
  
<!DOCTYPE html>