Forum Moderators: coopster
that should do it. If you want to use php to manage your pages you can use simple bit of code like this:
<?php
$found = FALSE;
if(file_exists("$id.htm"))
{
include("$id.htm");
$found = TRUE;
}
if(!$found)
{
include("error.htm");
}
?>
Place the above code where you want content to appear in your layout and then you can link to html pages appearing in the layout like this - index.php?id=htmlpagenamewithoutdothtm
Also I have noticed that pages in my website get spidered on search engines and they link directly to any HTML file so people are not able to see menus and other elements
will using-php help me in that users load pages that have been spidered and see them automatically with menus (for example)?
this is the body of my index.php
<body>
<div id="topIf"> this one says invalid markup
<?php
include("topframe.html");
?>
</div>
<div id="navIf">
<?php
include("menu.html");
?>
</div>
<div id="contentIf">
<?php
include("home.html");
?>
</div>
</body>
</html> also these two last closing tags