I declared it as global before the function and it didnt work.. didnt think to declare it as global inside.. ty
I now realize that i have to define the variable first, not just as a global.
(used to be good at php, came back forgot, but remember stuff still... so i think i get my self in more trouble. guh!)
sweet, ty!
FYI for anyone else,
here is how it goes, on your included page, do your variable like normal
$foobar = blah;
function blah(){
global $foobar; // this makes it global to use now, even within the function you can just use $foobar
}
other page
just call it like normal.
<3 to all who helped. TY
TY to mds1256 also, but i want it this way for a reason. never seen it done that way though. ;-)