I have the same variable where it can take two values
<?php if($adm1){
$email = '[email protected]';
}elseif( $adm1){
$email = '[email protected]';
}
How to compare the two variables as follows, if anything that comes different from these two emails I should issue an alert
I thought the following way:
<?php if($email !='[email protected]' OR $email !='[email protected]'){
echo 'alerta aqui';
}
But even if email falls into one of these conditions, it will always return wrong;
The fact is that you wanted to issue a warning whenever the email is different from these two options.