tried with both as php filesOnartis said:From the server you should see the PHP codes. In a browser window (doesn't have to be Firefox) it should be the HTML. Does that solve the "problem" ?
Make sure both your pages are php files...
- blame goliveHarry said:Hmm, there are some flaws with the code anyway. There's loads of CSS in the page itself instead of in the CSS file.
I forgot the link - linky (just had a thought though, it could be server side), I'll upload it to my home server and check there (I'll add link shortly)Basically all you need to do is take pageName.html, rename it pageName.php and then move chunks into includes, it should always work… I can't really guess anything without seeing it.
<?php
$pageName = 'My Site homepage';
$pageID = 'home';
include("/includes/header.php");
?>
<html>
<head>
<title><?php echo pageName; ?></title>
</head>
<body id="<?php echo pageID; ?>">
<?php
$pageName = 'page name here';
$pageID = 'home';
include("/includes/header.php");
?>
[content]
<?php
include("/includes/footer.php");
?>
</body>
</html>