This topic is locked

Use of Header and Footer

2/7/2007 4:10:29 PM
PHPRunner General questions
T
tparki authorDevClub member

As a Newbie and lacking any PHP knowledge please excuse me for asking for some example code to enable me to utilise the Footer to exit from PHP pages back to my home page. I guess my problem stems from a lack of understanding of how the browser reacts to php documents rather than html ! I should also like to display an image in the Header.

Thanks in advance.

Tim

B
bkersey 2/7/2007

cut this out and save as header.php in the Include directory
<center>

<font color="#C0C0C0">

<h1>Some Header Messsage Here</h1>

</font>

</center>
cut this out and save as footer.php in the Include directory



<center>

<font size='1'>

Some footer message here



Maybe Something else here

</font>

</center>
Works for me

J
Jane 2/8/2007

Tim,
here is a sample code for the header.php:

<p align="center"><img src="include/your_image.jpg" border="0"></p>

and footer.php:

<p align="center">

<b><font color=#237cbb> © 2005 - 2006 Your Company. All rights reserved.</font></b>
<a href="http://yourhost.com/home_page.htm">Home page</a>

</p>

T
tparki authorDevClub member 2/8/2007

Thanks for getting me going. Its really encouraging that help comes so quickly.

Tim

cut this out and save as header.php in the Include directory

<center>

<font color="#C0C0C0">

<h1>Some Header Messsage Here</h1>

</font>

</center>
cut this out and save as footer.php in the Include directory



<center>

<font size='1'>

Some footer message here



Maybe Something else here

</font>

</center>
Works for me

T
tparki authorDevClub member 2/8/2007

Tim,

here is a sample code for the header.php:

and footer.php:

T
tparki authorDevClub member 2/8/2007

Thanks Jane. Your code will enable me to get the phpr screens nicely embedded. My basic problem was that I had not realised that a php script could be vanilla html!

Tim

Tim,

here is a sample code for the header.php:

and footer.php: