Jump to content

[SOLVED] including a heading without frames


elmas156

Recommended Posts

Hello everyone,

 

I have the dynamics of my site completely finished and now I'm working on the design portion of it.  What I want to do is have one page with my logo and a menu bar and add it to every page using include() or something similar.  I've tried using the include but the only thing that is actually showing up is the background color... no logo.  Can anyone tell me what I'm doing wrong and how to correct it?  Here's what I have now.

 

This is the basic page I want to include (head.inc.php):

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #FFFF66;
}
-->
</style></head>

<body>


<div align="center">
  <p><img src="logo.gif" width="672" height="153"></p>
</div>
</body>
</html>

 

Here's how I'm trying to include it on the page:

<?php
include("head.inc.php");
?>

just put this code on one page and see if it shows the image

 

<img src="logo.gif" width="672" height="153" />

 

If you are using apache, check you apache error log and see what it tells you there, maybee it cant find the file for some reason, it isnt readable due to a htaccess file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.