Thanks for your reply.
The index.php looks like this:
<html>
<head>
<title>My website</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="container">
<?php
ob_start();
include ($SERVER['DOCUMENT_ROOT'].'/header.php');
include ($SERVER['DOCUMENT_ROOT'].'/linklist.php');
$pass = array('home','page1','page2'...);
if (in_array($GET['id'], $pass)) {
include ($SERVER['DOCUMENT_ROOT'] . '/' . $_GET['id'] . '.php');
}
elseif (!isset($GET['id'])) {
include ($SERVER['DOCUMENT_ROOT'] . '/home.php');
}
else {
header("HTTP/1.0 404 Not Found");
include ($_SERVER['DOCUMENT_ROOT'] . '/error.php');
}
include ($_SERVER['DOCUMENT_ROOT'].'/footer.php');
?>
</div>
</body>
</html>
The content pages (page1, page2, etc.) do not have a "head" section, only the text content within <div>.
So if I put the meta tags in the "head" section of the index.php, then the tags would be the same for all the content pages? I´d like each of the content pages to have their own meta tags, is this possible to do?
I´m sorry, I´m new to php. :o