$_POST['username'], 'email' => $_POST['email'], 'password' => $_POST['pwd'], 'active' => 1 ); $userID = $user->insertUser($data);//The method returns the userID of the new user or 0 if the user is not added if ($userID==0) echo 'User not registered';//user is allready registered or something like that else echo 'User registered with user id '.$userID; } echo '

Register

username:

password:

email:

'; ?>