Yeah my design is something I lack in big time. I'm trying to figure that out now by doing this. Thanks. But this is just a little sample code I made, it just shows what i'm trying to do with GLOBAL.
<?
GLOBAL $r;
$r = "blah";
function testtest($somevar) {
print "$somevar <br>";
print "$r";
}
testtest("hehe");
?>
it will only print out the $somevar why won't it print out the $r var?