Forum Moderators: coopster
$variable = "<html>
<body>
<div align=\"center\">
<table border=\"0\" width=\"980\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\">";
<?php
session_start();
$title="Sample Title Variable used in header.htm";
$meta_desc="Sample Meta Description used in header.htm";
include( "nav/header.htm");
?>
<h2>Here's the web page</h2>
Just put some stuff in here...
<?php
include( "nav/footer.htm");
?>
<title><?=$title?></title>
Another templating method is to store files with "markers"
<title |THE_TITLE| </title>
Then open them and preg_replace the markers with PHP variables and output the result, similar to the include system above but does apply in some cases.
<span id="loggedName">{LOGGED_NAME}</span>