With the querystring given, it takes an include file and inserts it into the template index.php page.
http://www.website.com/?page=dirname/pagename
Currently I have it laid out at the first line of each pagename file, a title
index.php
Code: Select all
<div id=content>
<!-- included page-->
</div>
included page
Code: Select all
<title>Website Title - PageName</title>
<!--content-->
So when they are fully put together it looks like this:
Code: Select all
<div id=content>
<!-- included page-->
<title>Website Title - PageName</title>
<!--content-->
</div>
With the way validation works, the title won't be inside of the <head> tag, thus giving me a validation warning. My goal is to ensure all the pages are 100% passing the html validation. It's not a requirement, but I would like to ensure the best work with what I do.
My thinking is I can use JavaScript to set the pagename, but I was wondering if there was an effeciant way to do this.
Note: No database is setup with these pages, but some content is managed through a database on certain pages.[/syntax]