Re: empty and isset

From: Date: Thu, 06 Feb 2003 05:31:37 +0000
Subject: Re: empty and isset
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134548@lists.php.net to get a copy of this message
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? */

« previous php.general (#134548) next »