Having problems with an IF statement, just doesn't make sense
| From: | BoBB | Date: | Mon, 07 Jul 2003 17:18:04 +0000 |
| Subject: | Having problems with an IF statement, just doesn't make sense | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154134@lists.php.net to get a copy of this message | ||
I am using the following if statement ...
if (isset($theme)) {
print("Current theme is $theme");
require "content/header_$theme.php";
} else {
print("$theme");
require "content/header.php";
}
now one would think that if it didn't return true that the else
statement wouldn't print anything for $theme ... but it does. Also if I
use !isset it returns true with a null value for $theme ... This doesn't
make sense to me ... maybee I am doing something wrong, if I am someone
please correct me heh.
--
/* BoBB
* AIM: Jodokast49 ICQ: 151495596
* Jabber: BoBB@jabber.com
* http://knightsofchaos.com/~BoBB/new/
* I geek, therefor I am.
*/