-1
Is there any way to force in my registration form only use gmail?
if(filter_var($post_email, FILTER_VALIDATE_EMAIL)){
if(strlen($post_password) >= 8){
if(!preg_match('/[\'^£$%&*()}{ @#~?><>,|=_+¬-]/', $post_login)){
if(!player_exist_login($post_login) && !player_exist_email2($post_email)){
if(player_create($post_login,$post_email,$post_password,$post_chardeletecode)){
if(player_send_email_register($post_login,$post_email,$post_password,$post_chardeletecode)){
promo_code($promocode);
r('verify/');
}else{
$check_msg = l(170);
}
}else{
$check_msg = l(84);
}
}else{
$check_msg = l(83);
}
}else{
$check_msg = l(81);
}
}else{
$check_msg = l(80);
}
}else{
$check_msg = l(79);
}
You can use the function
includesJS to check if the substring@gmail.comexists inside the string that stores the value of the email...– João Pedro Henrique
If it’s just gmail, why let the user fill in? It wouldn’t be simpler to input the domain BEFORE?
[campo input]@gmail.com– Bacco