My php page will display my html header include in the dreamweaver preview but not in a browser -


the snippet of include code in php file looks this.

<div id="header">   <!--#include virtual="includes/frontpage_header.html" --> </div> 

and frontpage_header.html code looks this.

<div style="float: left; width: 30%;"><a href="../index_new.php"><img id="headerlogo" src="../images/dynamichomes45th.png" alt="dynamic homes logo"/></a> </div> <div style="float: left; width: 33%;"> <h1>quality custom built homes</h1> </div> <div style="float: right; width: 33%;"> <div id="headernav">   <div id="whybuild">     <h2>why build dynamic</h2>     <img src="../images/whybuildicon.png" alt=""/> </div>   <div id="gallery">     <h2>gallery</h2>     <img src="../images/galleryicon.png" width="43" height="43" alt=""/>     </div> </div> </div> 

like said in title, display in dreamweaver's design view, not in browser. i'm not sure what's wrong.

try including using php:

<div id="header">     <?php include("includes/frontpage_header.html"); ?> </div> 

also it's worth making frontpage_header file .php rather .html considering using php elsewhere in project.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -