Advertisement
Guest User

Untitled

a guest
Feb 26th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST["register"])) {
  4.  
  5.     $username = $_POST["username"];
  6.     $password = $_POST["password"];
  7.  
  8.     password_hash($password, PASSWORD_DEFAULT);
  9.  
  10.     $database = fopen("DB.txt", "a");
  11.  
  12.     fwrite($database, $username);
  13.     fclose($database);
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement