當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。