I'm trying to create a table, and it has a background image. The table and it's contents displays fine, but the background image isn't present. I get no errors, just no picture. Is it not possible to have a table work this way in PHP? I have included my code below. I'm making a theme for PHP-Nuke, but I'm a complete noob at PHP, so I'm looking lots of tutorials. Everything I read says it should be fine with any HTML I write.
-Aarmenaa
PHP file:
$tmpl_file = "themes/BinaryToast/header.htm";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
header.htm (called by PHP above):
<table width="100%" height="122" border="0" cellpadding="0" cellspacing="0" background="http://www.binarytoast.com/themes/BinaryToast/images/extender.gif" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td><img src="http://www.binarytoast.com/themes/BinaryToast/images/logo.gif" width="782" height="122" border="0" usemap="#topbar"></td>
</tr>
</table>
<map name="topbar">
<area shape="rect" coords="146,103,203,120" href="http://www.binarytoast.com/index.php">
<area shape="rect" coords="221,103,304,120" href="http://www.binarytoast.com/modules.php?name=Search">
<area shape="rect" coords="324,103,424,120" href="http://www.binarytoast.com/modules.php?name=News&file=categories&op=newindex& catid=2">
<area shape="rect" coords="443,103,532,120" href="http://www.binarytoast.com/modules.php?name=News&file=categories&op=newindex& catid=1">
<area shape="rect" coords="549,103,620,120" href="http://www.binarytoast.com/modules.php?name=Forums">
<area shape="rect" coords="638,103,736,120" href="http://www.binarytoast.com/modules.php?name=Your_Account">
</map>
<br>
Here's how it's supposed to work: There's a banner that's just a standard image in the table (logo.gif). In order to make the banner extend to the edge of any size browser, I took the last colum of pixels and made the extend.gif picture a background image. If I run the HTML on my computer, it looks fine, but the part about the background image is ignored when it's run through the PHP.
It's supposed to look like
this