I would like to compare my variables, to validate a form:
if ($nome or $categoria or $rua or $numero or $bairro or $abre or $fecha or $email or $telefone == " ") {
echo"Tente novamente</b>, faltou preencher corretamente um ou mais campos do formulário.";
}
However, the echo
within the code does not execute.
I have found that one or more of these variables contains a space!
How can I correct this validation?