Does the file have to be called "f.php"? I named it "renavbar.php"
Here is the code for it:
Code:
[B]<div id="ele1">[/B]
[B]<?php
[U]include[/U] "renavbar.php";
?>[/B]
[B]</div>[/B]
As for the file itself:
Code:
[B]<php
[U]echo[/U] '
<html>[/B]
[B]<table width="100%" border="1">[/B]
[B]<tr>[/B]
[B]<td>[/B]
<!--main menu--!>
[B]<a href="index.html">[/B][B]<img src="http://i95.photobucket.com/albums/l136/surreal5335/RE%20site/home.png" onmouseover="rollOn([U]this[/U])" onmouseout="rollOff([U]this[/U])" id="home" vspace="1" hspace="0">[/B][B]</a>[/B]
[B]<a href="reforeclosure.html">[/B][B]<img src="http://i95.photobucket.com/albums/l136/surreal5335/RE%20site/foreclosures.png" onmouseover="rollOn([U]this[/U])" onmouseout="rollOff([U]this[/U])" vspace="1" hspace="0">[/B][B]</a>[/B]
[B]<a href="recompare.html">[/B][B]<img src="http://i95.photobucket.com/albums/l136/surreal5335/RE%20site/listings.png" onmouseover="rollOn([U]this[/U]); showMe(1)" onmouseout="rollOff([U]this[/U]); " id="hotspot" name="hotspot" vspace="1" hspace="0">[/B][B]</a>[/B]
[B]<a href="#">[/B][B]<img src="http://i95.photobucket.com/albums/l136/surreal5335/RE%20site/education.png" onmouseover="rollOn([U]this[/U]); showMe(2)" onmouseout="rollOff([U]this[/U]); " id="hotspot" name="hotspot" vspace="1" hspace="0">[/B][B]</a>[/B]
[B]<a href="#">[/B][B]<img src="http://i95.photobucket.com/albums/l136/surreal5335/RE%20site/products.png" onmouseover="rollOn([U]this[/U]); showMe(3)" onmouseout="rollOff([U]this[/U]); " id="hotspot" name="hotspot" vspace="1" hspace="0">[/B][B]</a>[/B]
[B]<a href="#">[/B][B]<img src="http://i95.photobucket.com/albums/l136/surreal5335/RE%20site/resources1.png" onmouseover="rollOn([U]this[/U]); showMe(4)" onmouseout="rollOff([U]this[/U]); " id="hotspot" name="hotspot" vspace="1" hspace="0">[/B][B]</a>[/B]
[B]<a href="resupport.html">[/B][B]<img src="http://i95.photobucket.com/albums/l136/surreal5335/RE%20site/support.png" onmouseover="rollOn([U]this[/U])" onmouseout="rollOff([U]this[/U])" vspace="0" hspace="1">[/B][B]</a>[/B]
[B]</td>[/B]
[B]</tr>[/B]
[B]</table>[/B]
[B]</html>[/B]';
?>
There is more inbetween the php tags, but its just a simple html table with <span> tags.
In another forum, people have mentioned:
making it strictly a html file that php calls
take out the <html> tag
take out the <?php?> and echo tags in the external file
I have also tried using single quotes when calling the file with php. ie. <?php include 'renavbar.php';?>
The one that did work for me momentarily is:
Code:
<?php include "renavbar.php";?>
keeping the <html> tags in the external file.