Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require_once 'usuarios.php';
- $usuarios = new Usuarios();
- if(empty($_POST['email'])) {
- $email = addslashes($_POST['email']);
- $senha = addslashes(($_POST['senha']));
- if($usuarios->logar($email, $senha)){
- header("Location: index.php");
- exit;
- } else{
- echo "Email e/ou senha incorretos";
- }
- }
- ?>
- <!DOCTYPE html>
- <html lang="pt-br">
- <head>
- <?php
- require 'header.php';
- ?>
- </head>
- <body>
- <div class="container d-flex flex-column align-items-center">
- <h1 class="center text-center text-success mt-4">Marketing Multínivel</h1>
- <div class="col-12 col-sm-8 col-md-6 col-lg-4 mt-4">
- <form method="POST">
- <div class="form-group">
- <label for="email">Endereço de e-mail</label>
- <input type="email" name="email" class="form-control" placeholder="Informe seu e-mail" required>
- </div>
- <div class="form-group">
- <label for="exampleInputPassword1">Senha</label>
- <input type="password" name="senha" class="form-control" placeholder="Informe sua senha" required>
- </div>
- <div class="d-flex justify-content-center">
- <input type="submit" class="btn btn-primary btn-lg mt-3" value="Logar">
- </div>
- </form>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement