Re: empty and isset
| From: | Mike dot Kent at indystar dot com | Date: | Thu, 06 Feb 2003 14:50:09 +0000 |
| Subject: | Re: empty and isset | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134611@lists.php.net to get a copy of this message | ||
Actually, I believe it's not a matter of the input being set, but the fact
that isset() returns true on an empty variable.
Jason Wong
<php-general@grem To: php-general@lists.php.net
lins.biz> cc:
Subject: Re: [PHP] empty and isset
02/06/2003 12:31
AM
Please respond to
php-general
On Thursday 06 February 2003 13:20, Bryan Lipscy wrote:
> Env: Slackware 8.1, Apache 1.3.27, PHP 4.3.0
> Bugs: None found for these issues.
>
> I am running to this same problem. The isset() function appears to have
> problems with the empty text value. The empty() function sees the value
> of $_POST['q1'] as expected.
>
> So why is both isset() and empty() returning true on q1?
<input> of type text are set regardless of whether you have entered
anything.
Thus isset() returns true.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Have you noticed that all you need to grow healthy, vigorous grass is a
crack in your sidewalk?
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php