Re: [PHP] empty() & texarea

2002-03-04 Thread John Fulton
e death, neither sorrow, nor crying, neither shall there be any more > pain: for the former things are passed away." - Revelation 21:4 > > > > From: John Fulton <[EMAIL PROTECTED]> > > Date: Fri, 1 Mar 2002 11:45:07 -0500 (EST) > > To: [EMAIL PROTECTED] &

Re: [PHP] empty() & texarea

2002-03-01 Thread Richard Baskett
; > Date: Fri, 1 Mar 2002 11:45:07 -0500 (EST) > To: [EMAIL PROTECTED] > Subject: [PHP] empty() & texarea > > > 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: > > > >

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 ca

[PHP] empty() & texarea

2002-03-01 Thread John Fulton
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: if(empty($open_why_good_consult)) { print "Please fill in why you would be a good consultant"; } Any ideas? It seems to work for things like this: if