Hello all. On my site I use the url to link to dynamically created pages: ... /page.php3?type=contests&category=weekly .
The page.php beings with the following code:
<?php include (meta.php3'); ?>
<body bgcolor="#184866">
content goes here
</body>
</html>
Now meta.php3 contains the <head> information as follows:
<?php
$pagetitle = ucfirst($category);
echo "<html><head><title>Contests and Sweepstakes - $pagetitle Entry - ContestHound.com</title>\n";
if ($type = 'contests') {
echo '<meta name="keywords" content="keyword list">';
echo '<meta name="description" content="description text">';
echo '<bunch of other meta tags>';
echo "</head>\n";
echo '<body bgcolor="#184866">';
} else {
}
?>
It does work putting in the <head> section in the appropriate spot but what I am wondering is this actually the proper way to get dynamic pages indexed by search engines?