Re: Having problems with an IF statement, just doesn't make sense
| From: | Valentina | Date: | Mon, 07 Jul 2003 11:57:38 +0000 |
| Subject: | Re: Having problems with an IF statement, just doesn't make sense | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154169@lists.php.net to get a copy of this message | ||
I've tried...print nothing in my browser then it seems to me correct.
The condition "ELSE" is satisfied.
bye.
codeused:
if (isset($theme)) {
print("Current theme is $theme");
require "content/header_$theme.php";
} else {
print("$theme");
require "content/header.php";
}
codeused.
"Bobb" <snoogans@qwest.net> ha scritto nel messaggio
news:20030707171804.GF8783@Zen.qwest.net...
> 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.
> */