Okay, I have two files:
top.x
<?
session_start();
$showframes = 1;
if(isset($_GET["h"]) && isset($_GET["w"]))
{
$_SESSION["h"] = $_GET["h"];
$_SESSION["w"] = $_GET["w"];
?>
<html>
<head>
<title>Title goes here</title>
</head>
<body>
<table width="80%">
<tr>
<td colspan=3>
<? require("banner.php"); ?>
</td>
</tr>
<tr>
<td>
<? require("menu.php"); ?>
</td>
<td>
And
bottom.x
<? require("footer.php"); ?>
</td>
<td>
<? require("ads.php"); ?>
</td>
</tr>
</table>
</body>
</html>
<?
}
else
{
header("Location: index.php");
}
?>
Now each page; eg main.php (below) has a require statement at the top [require("top.x");] and on down the bottom [require("bottom.x");]
In effect, each page should basically have the content of top.x copy and pasted into the top of the page and the content of bottom.x pasted at the bottom of the page
However, I get these two errors:
Parse error: parse error in top.x on line 40
Parse error: parse error in bottom.x on line 16
Whats wrong and how do I get arround it?
main.php
<?
require("top.x");
// Page content here
require("bottom.x");
?>