Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = ($_POST['username']);
- $password = crypt(($_POST['password']));
- $email = ($_POST['email']);
- $loginlength = strlen($username);
- $passlength = strlen($password);
- $emaillength = strlen($email);
- $data = array( 'username' => '$username', 'password' => '$password', 'email' => '$email' );
- $sth = $dbh->("INSERT INTO users (username, password, email) VALUES (:username, :password, :email) ");
- $sth->execute($data);
- echo "worked";
- ?>
Add Comment
Please, Sign In to add comment