Forum Moderators: coopster

Message Too Old, No Replies

Image missing from include file

         

pigsinpink

10:43 am on Aug 8, 2007 (gmt 0)

10+ Year Member



I created a simple site wide navigation menu, which includes links, text and image which I then saved as topmenu.html.

Using PHP include to reference the file:

<?php include("../include/topmenu.html");?>

This shows the text, links and image correctly.

<?php include("../../include/navigation.php");?>

This shows the text and links correctly, but the image is broken.

Is there a way to fix this?

pigsinpink

11:01 am on Aug 8, 2007 (gmt 0)

10+ Year Member



<?php include("../../include/navigation.php");?>

Sorry, I meant using include this shows the text, but links and images are broken.

Is there a way to make everything work using include.

Habtom

11:53 am on Aug 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about using base href, you might easily set the correct path. There was a recent discussion on this: The <base> element and how to use it effectively [webmasterworld.com]