Guest User

Untitled

a guest
Jun 12th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2. $username = ($_POST['username']);
  3. $password = crypt(($_POST['password']));
  4. $email = ($_POST['email']);
  5.  
  6. $loginlength = strlen($username);
  7. $passlength = strlen($password);
  8. $emaillength = strlen($email);
  9.  
  10.  
  11. $sth = $db->prepare("INSERT INTO users (username, password, email) VALUES (:username, :password, :email) ");
  12. $sth->bindParam(':username', $username);
  13. $sth->bindParam(':password', $password);
  14. $sth->bindParam(':email', $email);
  15. $sth->execute();
  16. $db = null;
  17.  
  18. echo "worked";
  19. ?>
Add Comment
Please, Sign In to add comment