- Joined
- May 11, 2018
- Posts
- 3,676
- Solutions
- 5
- Reaction
- 5,944
- Points
- 1,637
Mga master patulong po kung pano ung tamang statement para strong password lng ung e accept o store sa database
ito po yung code
ito po yung code
PHP:
if ($stmt->num_rows > 0) {
echo 'Username exists, please choose another!';
} else
{
if (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
exit('Email is not valid!');
}
if (preg_match('/^[a-zA-Z0-9]+$/', $_POST['username']) == 0) {
exit('Username is not valid!');
}
if (strlen('/^[a-zA-Z0-9]+$/', $_POST['password']) == 0) {
exit('Password must be strong');
}
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.