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");
?>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.