Hi, i am working on this 2page site that work together, can you tell me whats wrong?
whats happening is that when i use the include(); it places it at the top of the page instead of in the table where i want it.
##code for dotemplate.php##
##code for template.template##
website url:
im trying to create the same effect as
any ideas?? am i doing it the right way??
thanx
Martin
Computing help and info:
whats happening is that when i use the include(); it places it at the top of the page instead of in the table where i want it.
##code for dotemplate.php##
Code:
<?php
$main = "testing";
$logo = "logo";
$left = include("navleft.php");
$right = include("middlenav.php");
$pagehtml = implode("", file("template.template")); // for change layout use ".$_SESSION['template'].'"
$pagehtml = str_replace("[## titlebar ##]", $logo, $pagehtml);
$pagehtml = str_replace("[## copyright2 ##]", $copyright, $pagehtml);
$pagehtml = str_replace("[## leftnav ##]", $left, $pagehtml);
$pagehtml = str_replace("[## main ##]", $main, $pagehtml);
$pagehtml = str_replace("[## rightnav ##]", $right ,$pagehtml);
echo($pagehtml);
?>
##code for template.template##
Code:
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800" id="AutoNumber1">
<tr>
<td width="100%">[## titlebar ##]</td>
</tr>
<tr>
<td width="200">[## leftnav ##]</td>
<td width="400">[## middle ##]</td>
<td width="200">[## rightnav ##]</td>
</tr>
<tr>
<td width="800">[## copyright ##]</td>
</tr>
</table>
</body>
</html>
website url:
im trying to create the same effect as
any ideas?? am i doing it the right way??
thanx
Martin
Computing help and info: