-
PHP Layout Templet
I have a web page that has 3 files named header.php, footer.php, and index.php.. Header has the top logo and the side navigation. Footer has the bottom of the website, and index has the content. How do I put whatever I want into the index.php? Here is the coding I have for index.php
Code:
<html>
<head>
<title>blahblahtitle>
</head>
<body bgcolor="#000000">
<?
include 'header.php';
echo "i want the content to go here";
include 'footer.php';
?>
</body>
</html>
-
Why don't you put the beginning HTML tags in the header.php as well, and do this?:
Code:
<?php include 'header.php'; ?>
<b>Content here</b>
<?php include 'footer.php'; ?>
Or if you want to keep those tags out of the header.php file, just do:
Code:
<html>
<head>
<title>blahblahtitle>
</head>
<body bgcolor="#000000">
<?php include 'header.php'; ?>
<b>Content Here</b>
<?php include 'footer.php'; ?>
</body>
</html>
-
Here is what I have: http://www.surekill.net/testsite/SKn...psiteindex.php
The header consists of the top thing with the text, the grey stripe under that, and the gray box to the left. The footer is that bottom stripe, and the index is the black box in the center. I set it up from the tutorial here: http://www.phpfreaks.com/tutorials/8/0.php
-
cool it worked great. thx for the help :D