Forum Moderators: open
<title> is different for each page, as well as the meta description and keywords if you use them. You can use a variable at the top of each page to echo the values you want in the right place, for example: <?php $pagetitle="page title";
$keywords="list of meta keywords";
$description="your meta description here";
include($_SERVER["DOCUMENT_ROOT"]."/includes/header.inc.php");?>
<p>your page content here...</p>
<?php include($_SERVER["DOCUMENT_ROOT"]."/includes/footer.inc.php");?> And in your header.inc.php:
<?php header('Content-Type: text/html; charset=ISO-8859-1');
header('Content-Language: en');?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>WidgetsCo<?php if (isset($pagetitle)) {echo " - ".$pagetitle;}?></title>
<?php if (isset($description)) {
echo "<meta name=\"description\" content=\"".$description"\">";}?>
<?php if (isset($keywords)) {
echo "<meta name=\"keywords\" content=\"".$keywords"\">";}?>
<style type="text/css" media="all">@import "styles.css";</style>
</head>
<body>