当前位置: 首页>>代码示例>>PHP>>正文


PHP validation::checkMail方法代码示例

本文整理汇总了PHP中validation::checkMail方法的典型用法代码示例。如果您正苦于以下问题:PHP validation::checkMail方法的具体用法?PHP validation::checkMail怎么用?PHP validation::checkMail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在validation的用法示例。


在下文中一共展示了validation::checkMail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

	<body>
		
		    <div class="container">
            	
                	
		        <div class="card card-container">
                             <h3 align="center" style="color:black;">Cafeteria</h3>
		            <img id="profile-img" class="profile-img-card" src="images/avatar_2x.png" />
                    
                    <?php 
if (isset($_POST['login_btn'])) {
    $uname = $_POST['uname'];
    $pass = $_POST['password'];
    $checked = '';
    if ($validate->checkNotNull($uname) and $validate->checkNotNull($pass)) {
        if ($validate->checkMail($uname)) {
            if (isset($_POST['remember'])) {
                $checked = '1';
            } else {
                $checked = '2';
            }
            if ($login->login($uname, $pass, $checked)) {
                echo "Go To Login Function";
            } else {
                ?>
									<div class="alert alert-danger">No Email Found With This Data or This User Blocked <br> Please Contact The Administretor</div>
								<?php 
            }
        } else {
            ?>
								<div class="alert alert-danger">Invalied Email</div>
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:login.php

示例2: time

 $name = $_POST['name'];
 $roomNo = $_POST['roomNo'];
 $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>";
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:addUser.php


注:本文中的validation::checkMail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。