Advertisement
Guest User

Max PHP

a guest
Mar 2nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. if(isset($_POST["register"])) {
  2.  
  3.     $username = $_POST["username"];
  4.     $password = $_POST["password"];
  5.     $database = "DB.txt";
  6.  
  7.     $userdata = "Username: " . $username . " | Password: " . $password .
  8.     password_hash($password, PASSWORD_DEFAULT);
  9.  
  10.     file_put_contents($database, $userdata, FILE_APPEND);
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement