|
Posted by mtuller on 11/06/07 18:00
On Nov 6, 11:41 am, Good Man <he...@letsgo.com> wrote:
> mtuller <mitul...@gmail.com> wrote innews:1194370693.692490.11330@19g2000hsx.googlegroups.com:
>
> > When I submit, if I have data in one field, but not in all, it
> > displays "The fields are empty". I want it to submit into the database
> > if any fileds are filled in, but not if there are no fields filled in.
>
> but one post ago you said:
>
> "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
> &&."
>
> So decide what exactly you are trying to do, and then pick either of the
> solutions posted.
Ok. I see where it sounds like I am saying different things, but I am
not. Let me try again...
I want to check to see if ALL fields are empty, and if they are, the
form is not submitted into the database. If any of the fields have
data though, I want it to be submitted. That is why I am checking with
&&. If $nominee_first_name AND $nominee_middle_initial AND
$nominee_last_name are all empty, echo "The fields are empty". If any
are filled in, then submit to the database.
Hope that explains better.
[Back to original message]
|