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" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> * http://knightsofchaos.com/~BoBB/new/
> * I geek, therefor I am.
> */
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php