Hi everyone,
I have some links on a page that, when clicked, go to a php controller page, called index.php, eg.
<div> <?php echo "<a href=\"$url_business/index.php?subcatID=1&itemTypeID=1\">Suits</a>"?></div>
The controller page queries the database and then includes a template file. All this happens successfully but when I look in the browser source code after the template file has been included, I can see that it contains two doctypes and some other code before another doctype from my template page is rendered.
Below is the top of the code from the browser:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<p></p>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/catalogue_business.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
I can't understand where the extra code is coming from since the controller page is purely php and then it's only when it includes the template page that there's any xhtml.
Does anyone know why this is happening?
Appreciate any assistance.