RE: [PHP-WIN] isset() question

From: Date: Sun, 15 Feb 2004 16:51:18 +0000
Subject: RE: [PHP-WIN] isset() question
Groups: php.windows 
Request: Send a blank email to php-windows+get-22821@lists.php.net to get a copy of this message
> Why doesn't the call to !isset() with the negation > mark loads the nextpage when a name is not entered? What do you get if you do: if (isset($a)) { print '$a is set'; } else { print '$a is not set'; } $a = ""; if (isset($a)) { print '$a is set'; } else { print '$a is not set'; } You get: F:\>c:\PHP\php -f test.php $a is not set $a is set F:\> Why? Becasue pointing to an empty string is not the same as having no pointer at all. Does this solve your problem?

« previous php.windows (#22821) next »