Hi,
I was wondering if anyone else has had issues with php includes moving the doctype and meta tags into the body xml schema in IE debug tools. IE is epically failing on several of my pages when code returns a warning even when I have gracefully corrected the warning. See screenshot of the IE9 Debug bar:
as you can see it messes up the styling of the page:
here is what the page looks like when I go direct to the feedback page on my development server (www.teknikaltim.com/feedback/feedback.html.php):
here is the html.php template that is my feedback page. when visitors go to my feedback url (www.teknikaltim.co.uk/feedback/) the index.php file above will eventually connect to a database that will hold a news message (a helpful hint or a greating of my choice), which will be displayed under my mobile number. The script will also check to see if they have a session on the server and show appropriate links on the top left of the page.
/feedback/feedback.html.php:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Teknikal Tim - Feedback</title>
<meta name="description" content="Teknikal Tim Feedback Page">
<meta name="author" content="Tim Maclennan">
<link rel="stylesheet" href="/css/styles.css?v=1.0">
</head>
<body>
<!-- Detect if the visitor is using IE 8 or below then if they are, check if java scripting is enabled.-->
<!--[if lt IE 9]>
<noscript id="info">I have identified you are using internet explorer but a version prior to IE9.
<br>
Please enable Java scripts if the page looks strange or if some of the functions fail to work
</noscript>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
Page not displaying correctly? Please upgrade your browser to IE9 or later, or turn off compatibility mode.
<![endif]-->
<!--Site header start-->
<header>
<!-- Place news Message here so it can float to the right hand side at the top of the page -->
<article id="UsefulInfo">my number goes here<br><!--<//?php echo '<MARQUEE>' .$curNewsMessage .'</MARQUEE>'; ?>--><br></article>
<!-- session links are here so they can be placed at the very top of the page above the main header-->
<nav id="session"><!-- Links Dynamically created / Updated to allow users to login, register, loggout or admin to access cms -->
<!-- ?php htmlout($logged); ? -->
<!--<//?php echo $logged; ?>-->
</nav>
<div id="Welcome"><a href="/"><img alt="Teknikal Tim" src="/images/Teknikal%20Tim.png"></a>
</div>
<div id="sitelinks">
<nav id="sitelinks"> <!-- Horizontal navigation bar -->
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about/">About Teknikal Tim</a></li>
<li><a href="/services/">Services</a>
<ul id="services">
<li><a href="/services/#cleanup">Cleanup</a></li>
<li><a href="/services/#remoteassistance">Remote Assistance</a>
<ul>
<li><a href="/services/#AvastRemote">Via Avast Anti Virus</a></li>
<li><a href="/services/#TeamViewerRemote">TeamViewer</a>
<ul>
<li><a href="/services/#TeamViewerLicenceAgreement">Team Viewer Licence Agreement</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="/services/#rendering">Rendering</a></li>
<li><a href="/services/#setup">Setup</a></li>
<li><a href="/services/#webdev">Website Design & Developement</a></li>
</ul>
</li>
<li class="currentpage" ><a href="/feedback/">Feedback</a></li>
</ul>
</nav>
</div>
</header>
<!--Site header end-->
<footer><article id="copyright"><?php echo '© Teknikaltim.co.uk ' .Date('Y') .' All rights reserved'; ?></article></footer>
</body>
</html>
and here is the index.php file:
/feedback/index.php:
<?php
include $_SERVER['DOCUMENT_ROOT'] .'/includes/db.inc.php';
include_once $_SERVER['DOCUMENT_ROOT'] .'/includes/access.inc.php';
include_once $_SERVER['DOCUMENT_ROOT'] .'/includes/ObjectClasses.inc.php';
include 'feedback.html.php';
?>
If you need I can temporarily upload developement site to the live server for you to see what i mean. I have tested the layout in Firefox, Opera and Safari,
Firefox is the best browser (it doesn’t break page layout in firefox) in opera and safari there is a gap at the top of the page which, when navigating from another page to Feedback it looks like the whole page Jumps down.
drop me an email (enquiries@teknikaltim.co.uk) if you would like the development website live at www.teknikaltim.co.uk. or drop me a text on the number on the top of the site
Many thanks for any help in advance
Tim,
Teknikal Tim