Advertisement
MendaxPentest

login generico

Feb 20th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php
  2.     if(isset($_POST)){
  3.         // Pega os dados do formulário ...
  4.         $email = $_POST['email'];
  5.         $senha = $_POST['senha'];
  6.         // Acessar os dados no banco, use pdo ...
  7.         $acessar = "SELECT * FROM clientes WHERE email=$email AND senha=$senha";
  8.         // ...
  9.     }
  10. ?>
  11. <form action="cadastra.php" method="POST" enctype="application/x-www-form-urlencoded">
  12.     <label>E-mail do cliente:</label>
  13.     <input type="email" name="email" />
  14.     <label>Senha do cliente:</label>
  15.     <input type="password" name="senha" />
  16.     <input type="submit" value="Acessar" />
  17. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement