I was just wondering. Im submitting a form, using this code:
if ((!empty($_POST['Name']) || !empty($_POST['E-Mail']) ||
!empty($_POST['Question'])) {
code...
}
What im testing for is
if name, email or question is set, do the following. But it is not working,
do I have the syntax right?
Also where is the document on the php site that explains || and &&
Thanks.
if ((!empty($_POST['Name']) || !empty($_POST['E-Mail']) ||
!empty($_POST['Question'])) {
code...
}
What im testing for is
if name, email or question is set, do the following. But it is not working,
do I have the syntax right?
Also where is the document on the php site that explains || and &&
Thanks.
Comment