|
Posted by mtuller on 11/06/07 16:56
On Nov 6, 10:15 am, Darko <darko.maksimo...@gmail.com> wrote:
> On Nov 6, 4:50 pm, mtuller <mitul...@gmail.com> wrote:
>
> > I am creating a page for nomination and want to let the information
> > pass if any field are filled out, but if none are filled out, a
> > message will appear. I can't get the check to happen on multiple
> > fields though.
>
> > Here is what I have:
> > if ($nominee_first_name !=='' && $nominee_middle_initial !=='' &&
> > $nominee_last_name !=='')
>
> > What happens is that if all fields have content, the page passes, and
> > all I care about is that there is something entered in at least one
> > field.
>
> Replace && with ||
Sorry, the subject of this is wrong. I don't want to check if any
fields are empty. I want to check if all are empty. That's why I have
&&.
Navigation:
[Reply to this message]
|