Guest User

Untitled

a guest
May 29th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2. if($_GET['do'] == 'login') {
  3. if(($_POST['user']) && ($_POST['pass'])) {
  4. $user = $_POST['user'];
  5. $pass = $_POST['pass'];
  6. setcookie('user', $user);
  7. setcookie('pass', $pass);
  8. echo "Logged in!";
  9. }
  10. }
  11. ?>
Add Comment
Please, Sign In to add comment