Guest User

Untitled

a guest
Aug 1st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. use SSL / https on page
  2. <html>
  3. <body>
  4. <form action="b.php" method="post">
  5. <input name="username" type="text" />
  6. <input name="password" type="password" />
  7. <input type="submit" />
  8. </form>
  9. </body>
  10. </html>
  11.  
  12. <?
  13. $sql = "SELECT * FROM user WHERE username = '{$_POST['username']}' && password = '{$_POST['password']}'";
  14.  
  15. if (....) {
  16. $_SESSION['logged'] = true;
  17. header('location: a.php');
  18. exit;
  19. }
  20. ?>
Add Comment
Please, Sign In to add comment