Re: [PHP] empty() & texarea

2002-03-04 Thread John Fulton
Thank you. This worked well. John On Fri, 1 Mar 2002, Richard Baskett wrote: > This is a simple solution and it should work and you'll probably kick > yourself when you hear it *grin* Use: > > $open_why_good_consult?> > > Put it all on one line, because the way you have it currently t

Re: [PHP] empty() & texarea

2002-03-01 Thread Richard Baskett
This is a simple solution and it should work and you'll probably kick yourself when you hear it *grin* Use: Put it all on one line, because the way you have it currently there are white spaces in the textarea and a newline so it's always going to be FALSE when testing to see if it's empty. Ch

Re: [PHP] empty() & texarea

2002-03-01 Thread Andrey Hristov
Hi Erik, I think that you look for array_count_values(). Regards, Andrey - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "John Fulton" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 6:58 PM Subject: Re: [P

Re: [PHP] empty() & texarea

2002-03-01 Thread Erik Price
On Friday, March 1, 2002, at 11:45 AM, John Fulton wrote: > > I can't seem to get empty() to check if someone has left > a textarea unanswered in an online form with code like > the following: > > > > In cases where you have provided a default value to fill in the form, you can't use empty

Re: [PHP] empty() & texarea

2002-03-01 Thread Andrey Hristov
When register_globals is on try this: if ($open_why_good_consult){ } Regards, Andrey - Original Message - From: "John Fulton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 6:45 PM Subject: [PHP] empty() & texarea > > I can't seem to get empty() to check if