Guest User

Untitled

a guest
Mar 3rd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. include ('config.php');
  3.  
  4. $username = $_POST('username');
  5. $password = $_POST('password');
  6. $encrypted_password = md5($password);
  7.  
  8. $count = $dbconnect->prepare("INSERT INTO members (username, password) VALUES (':username', ':encrypted_password')");
  9. $count->execute(array(':username' => $username, ':encrypted_password' => $encrypted_password));
  10. ?>
Add Comment
Please, Sign In to add comment