daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Feb 18th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. session_start();
  3. require_once 'usuarios.php';
  4. $usuarios = new Usuarios();
  5.  
  6. if(empty($_POST['email'])) {
  7.     $email = addslashes($_POST['email']);
  8.     $senha = addslashes(($_POST['senha']));
  9.  
  10.     if($usuarios->logar($email, $senha)){
  11.         header("Location: index.php");
  12.         exit;
  13.     } else{
  14.         echo "Email e/ou senha incorretos";
  15.     }
  16. }
  17. ?>
  18.  
  19. <!DOCTYPE html>
  20. <html lang="pt-br">
  21. <head>
  22.     <?php
  23.         require 'header.php';
  24.     ?>
  25. </head>
  26. <body>
  27.     <div class="container d-flex flex-column align-items-center">
  28.         <h1 class="center text-center text-success mt-4">Marketing Multínivel</h1>
  29.         <div class="col-12 col-sm-8 col-md-6 col-lg-4  mt-4">
  30.             <form method="POST">
  31.                 <div class="form-group">
  32.                     <label for="email">Endereço de e-mail</label>
  33.                     <input type="email" name="email" class="form-control" placeholder="Informe seu e-mail" required>
  34.                 </div>
  35.             <div class="form-group">
  36.                 <label for="exampleInputPassword1">Senha</label>
  37.                 <input type="password" name="senha" class="form-control" placeholder="Informe sua senha" required>
  38.             </div>
  39.             <div class="d-flex justify-content-center">
  40.                  <input type="submit" class="btn btn-primary btn-lg mt-3" value="Logar">
  41.             </div>
  42.             </form>
  43.         </div>
  44.     </div>
  45. </body>
  46. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top