New to PHP & trying to create a site strictly with PHP. I’m probably missing something fundamental here (frontal lobe?), but don’t know what.
I have a page titled index.php. It uses PHP includes:
<body>
<? include(‘header.php’); ?>
<? include(‘nav.php’); ?>
<? include(‘ad.php’); ?>
<? include(‘homepage.php’); ?>
</body>
Homepage.php has the content I want to display. So far, so good. Everything displays properly.
Here’s my problem. Homepage.php uses a simple html link to another page: <a href=”submissions.php”>contribute to the site</a>. That page includes the same <? include ?> statements as index.php, but what displays is only the content of submissions.php. No header. No navigation. No right-hand column. No joy. ?
I’m testing this locally, on my laptop, and the files have not been uploaded to the server, in case that has a bearing on things. Ideas?