> > the only way you may go wrong with this is with scoping, > > $yourvar isn't available in a function inside yourpage.php. > It can be, though. You just need to tell the function to look for the > global variable $yourvar: > function yourFunction() { > global $yourvar; > ... > }
or function yourFunction() { $localVar = $GLOBALS[yourvar]; ... } Chris