Thank you Mike- I was looking for a form like feel and make sure certain fields were filled or it would not send. So I need to check 'field1','field2','field3, etc... And make sure they have something in there. Do I just write the code as:
if(trim(field1)=="") or if(trim(field2) or if(trim(field3) or if(trim(etc...) $validationOK=false; The problem I have is the 20+ fields and wanting to make sure I have the code right. Sincerely, Paul D. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of MikeB Sent: Tuesday, March 16, 2010 4:20 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: OT +x3 PHP Both of the following are the same, that is why it said OR. I always use the first in any language just to be clear at the expense of verbosity. if(call()==TRUE) if(call()) ----- Original Message ----- From: "Paul InterlockInfo" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Tuesday, March 16, 2010 4:12 PM Subject: [RBASE-L] - RE: OT +x3 PHP > Getting mixed input from the php manual and it is a rather simple (in > RBase) > script so: > > > > if (Trim($EN6365)=="") $validationOK=false; > > > > I would like to include all fields that are entered (no empty fields) so > what is the separator for this? Is it as simple as the example below and > just use the 'or' even if this example shown had that commented out? > > > > > > Sincerely, > > Paul Dewey > > > > > > Example: > > <?php > > > if(call()==TRUE) // or if(call()) > { > // nothing to do > } > else > { > // do something here > } > ?> > > > >

