M H I N Y E
Elite
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');
}