angusyoungfan Posted September 13, 2006 Share Posted September 13, 2006 How do I put a Navigation Bar Into PHP, I have little experience with PHPthe HTML for it is[quote] <td bgcolor="#FFFFFF" width="170"> <center> <b><font color="#000000"> Site Navigation </font></b> </center> </td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000"> <div align="center"><a href="index.html" class=menu><strong>Home</strong></a></div> </td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" bgcolor="#000000"><div align="center"><strong><a href="news.html">News</a></strong></div></td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000"> <div align="center"><a href="about.html" class=menu><b> About</b></a></div> </td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000"> <div align="center"><a href="contact.html" class=menu><b>Contact Us </b></a></div> </td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000"> <div align="center"><a href="bio.html" class=menu><strong>Bio's</strong></a></div> </td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" bgcolor="#000000"><div align="center"><strong><a href="video.html">Video</a></strong></div></td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" bgcolor="#000000"><div align="center"><strong><a href="link.html">Link To Us</a> </strong></div></td> </tr> <tr bgcolor="#000000" bordercolor="#999999"> <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000"> <div align="center"></div> </td> </tr> </table>[/quote] Quote Link to comment Share on other sites More sharing options...
yaba Posted September 13, 2006 Share Posted September 13, 2006 [code=php:0]<?phpecho <<<OUT//put here all that stuffOUT;?>[/code]make sure there's no white space after <<<OUT and no white space before and after OUT;;) Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted September 13, 2006 Share Posted September 13, 2006 or you can put it here >> nav.php then [code]include_once('nav.php');[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.