Re: isset not functioning

From: Date: Mon, 03 Aug 2009 17:19:01 +0000
Subject: Re: isset not functioning
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-296215@lists.php.net to get a copy of this message
On Mon, 03 Aug 2009 20:11:44 +0300, "Parham Doustdar" <parham90@gmail.com> wrote:
Your if-statement should be like this: [code] if(isset($_REQUEST['firstname']) && !empty($_REQUEST['firstname'])) { ... } [/code]
Or even: [code] if(!empty($_REQUEST['firstname'])) { ... } [/code] Because empty will also check if variable exists --

« previous php.general (#296215) next »