Re: Re: Determine whether $_GET has a value

From: Date: Thu, 24 Jun 2004 16:50:57 +0000
Subject: Re: Re: Determine whether $_GET has a value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188972@lists.php.net to get a copy of this message
--- Anguz <clavaque@prodigy.net.mx> wrote: > Wouldn't this work? > > if(isset($_GET['var']) && !empty($_GET['var'])){ > // do something... > } No, he mentioned that he considers 0 to be acceptable, and this will fail the empty() test. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/

« previous php.general (#188972) next »