I'm calling an include at the very top of my code:
i've got this line of code in includes/page_top.php:
<?php if ($crumb2=="wirtzer") echo "Active";?>
now, in the code of the page that is calling includes/page_top.php, i'm defining the crumb2 variable: i.e.:
my issue is that i'm getting server errors (not on the php page but in the log files) like this one:
[Sat Feb 05 10:03:06 2011] [client 18.104.22.168] PHP Notice: Undefined variable: crumb2 in /home/derm/includes/submenu-forms.php on line 3
i'm guessing this is because includes/page_top.php loads before the rest of the code containing the actual crumb2 variable definition. can i define a default crumb2 variable in includes/page_top.php? so i don't keep getting these errors?