Here is a working page from our website (PHP v 4.2.3):
<?PHP
$strPagename = 'schoolmain';
require ('global/!config.inc');
require ('global/!header.inc');
require ('pages/school/schoolmain.inc');
require ('global/!footer.inc');
?>
How can I use the variable $strPagename in the third require statement?
I tried
require ('pages/school/$Pagename.inc');
and
require ('pages/school/<?php print $strPagename; ?>.inc');
and both did not work.
My goal is to eventually have a single template page and I am slowly working my way there (couldn't spell PHP a month ago).
Any help would be appreciated especially since this is volunteer work for a non-profit site (school).
thanks,
Brian