I am taking a break from the tutorial. I am trying to recreate my websites index.html page output at www.tonythetiger.frih.net . The index has 3 frames (a header, a sidebar directory and a mainwindow). I have gotten the webpage to pull all the frames correctly as follows:
<html>
<head>
<title>Test PHP Page</title>
</head>
<body>
<table>
<tr valign="top">
<td width="170">
<?php
//inserts the directory file
require("directory.html"); ?>
<Font size=1>
<?php
echo "Copyright © 1999 - " . date('Y') . ", by Antonio Vernón, All Rights Reserved."; ?>
</font>
</td>
<td>
<font size=1>
<?php
//Prints something like: Monday January 15, 2006 05:51:38 AM
echo "This page was loaded on " . date("l F d, Y H:i:s A"); ?>
</font>
<?php
//inserts the frame header file
require("header.html"); ?>
<?php
//inserts the mainwindow file
require("main.html"); ?>
</td>
</tr>
</table>
</body>
</html>
My problem is that in the HTML code for the main window I use a <center></center> tag for a title. However the PHP file above centers the whole frame. What is going on? I have tried to use various align commands to no avail.
P.S. I used another tutorial for a big part of this because the W3 schools tutorial teaches the require command very early on.
<html>
<head>
<title>Test PHP Page</title>
</head>
<body>
<table>
<tr valign="top">
<td width="170">
<?php
//inserts the directory file
require("directory.html"); ?>
<Font size=1>
<?php
echo "Copyright © 1999 - " . date('Y') . ", by Antonio Vernón, All Rights Reserved."; ?>
</font>
</td>
<td>
<font size=1>
<?php
//Prints something like: Monday January 15, 2006 05:51:38 AM
echo "This page was loaded on " . date("l F d, Y H:i:s A"); ?>
</font>
<?php
//inserts the frame header file
require("header.html"); ?>
<?php
//inserts the mainwindow file
require("main.html"); ?>
</td>
</tr>
</table>
</body>
</html>
My problem is that in the HTML code for the main window I use a <center></center> tag for a title. However the PHP file above centers the whole frame. What is going on? I have tried to use various align commands to no avail.
P.S. I used another tutorial for a big part of this because the W3 schools tutorial teaches the require command very early on.
