Advertisement
Guest User

Untitled

a guest
Jul 30th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. if ($_SERVER['REQUEST_METHOD'] == "POST" && !empty($_POST['username']) && !empty($_POST['password'])) {
  2.         $username = $_POST['username'];
  3.         $password = $_POST['password'];        
  4.         $checkuser = is_user_available($connection , $username);
  5.        
  6.         if($checkuser>0){
  7.           add_user($connection, $username, $password);
  8.         }else{ 
  9.           echo "I'm sorry but the username you specified has already been taken.  Please pick another one.";
  10.         }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement