On Mon, 7 Jul 2003 10:18:04 -0700, you wrote:
>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
I would expect it to error (undefined variable theme). We need to know
what's being printed.
(BTW, to avoid the risk of calling an undefined variable, I tend to do
something like this at the top of the script:
if (!isset($theme)) {
$theme = "";
}
and this later on:
reguire ("content/header$theme.php");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php