Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('dbc.php');
- // set variables
- $full_name = $_POST['full_name'];
- $username = $_POST['username'];
- $password = $_POST['password'];
- $repeat_password = $_POST['repeat_password'];
- //check if all is filled in
- if( empty($full_name) || $full_name == NULL ) {
- echo "Please fill in your Full name, or just figure out a fake one";
- }
- if( empty($username) || $username = NULL ) {
- echo "Please fill in an username";
- }
- if ( empty($password) || empty($repeat_password) || $password == NULL || $repeat_password == NULL ) {
- echo "Please fill in an password, also repeat the password.";
- }
- elseif ( strlen($password || $repeat_password) < 6 )) {
- echo "Make your password longer then 6 characters";
- }
- elseif ($password !== $repeat_password){
- echo "Please fill in the same passwords";
- }
- function safePassword{
- $hash_repeat_password = hash('sha512,$repeat_password');
- $md5_password = md5($hash_repeat_password);
- $hash_password = hash('sha512,$password');
- $md5_password = md5($hash_password);
- }
- $query_insert_username = mysql_query('INSERT INTO username WHERE')
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement