I have a header.php file containing the following code...
In my other .php pages I want to be able to set the variables in the included header file.
I have:
I know this doesn't set the variables in the required page. Can someone let me know what the format for doing so is?
Code:
... <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo $tpTitle ?></title> <meta name="description" content="<?php echo $pgDesc ?>"></meta> <meta name="keywords" content="<?php echo $pgKeywords ?>"></meta> ...
I have:
Code:
<?php include("../incl/header.php"); ?> <?php $tpTitle="Page title"; $pgHeading=""; $pgDesc="page description"; $pgKeywords="page keywords"; ?> <body id="courses"> <?php include("../incl/nav.php"); ?> ...
Comment