thx it has a small problem i was trying to use it and this is what came up just after copying and pasting it
this is all it comes up with
HTML Code:
create table users (id int auto_increment, nick text, password text, email text, primary key(id));
Username:
Password:
Remember me?
Register
Error: User Doesn't Exist
The username/password combination you have entered is not in our database. Please check that you have entered your username and password correctly. If you have not yet registered, you may do so here.
> Username: > Password: > Email:
20) $errArr[0] = 'Username cannot be longer than 20 characters'; if(strlen($_POST['pass']) < 7) $errArr[1] = 'Password must be longer than 7 characters'; if(empty($errArr[2]) && !is_email($_POST['email'])) $errArr[2] = 'This is not a valid email address'; for($i = 0; $i < count($errArr); $i++) if(!empty($errArr[$i])) die(registerForm($valArr, $errArr)); $pass = md5($pass); // Actual registration mysql_query("insert into $userstable (nick, password, email) values ('$nick', '$pass', '$email');") or die(mysql_error()); login(); } function userExists($nick) { head('Error: User Already Exists'); ?>
Error: User Already Exists
The username "" already exists in our database. Please check that you have entered your username and password correctly.
Download
can you tell me if i dont something wrong how i change it to send details to my email if the user can do on even if i havent approved them and if they can register
thx for your help
Bookmarks