I have created a form. I do have five fields which are all required. The names of the fields: name, address, city, organisation and email.
I already created a statement with something like:
if( emtpy($_POST['name']) || .... etc.)
{
$error="some value";
}
Later on I check whether or not $error is set yes/no.
The question is: When one of the fields is empty $error should be set. But using "||" or "&&" (in conjunction with the !) doesn't seem to work. I've used this code before with succes, but it seems I am doing something wrong.
Many thanks in advance for your help![