Jump to content

lunasmom

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by lunasmom

  1. you don't need to convert it to php, you can include any regular file.if you still want to, here's how:
    <?phpecho '<div id="sidebar-a"><p class="sideHEAD"><u>Head</u></p><p class="sideHEAD"><a class="side" href="/directory/target.html">Category</a></p><p class="sideTEXTINDENT"><a class="side" href="/directory/target2.html">Subcategory</a></p></div>';?>

    notice the echo.

    Thanks so much for the help!Melissa
  2. Try using PHP. Save the code to a file called "Sidebar.php"And then in every page that uses the sidebar, put this code where you want the sidebar. <? include("sidebar.php"); ?>
    My sidebar is currently just HTML and CSS. It looks something like this:<div id="sidebar-a"> <p class="sideHEAD"><u>Head</u></p> <p class="sideHEAD"><a class="side" href="/directory/target.html">Category</a></p> <p class="sideTEXTINDENT"><a class="side" href="/directory/target2.html">Subcategory</a></p></div>If I just add PHP tags to it, like so:<?php<div id="sidebar-a"> <p class="sideHEAD"><u>Head</u></p> <p class="sideHEAD"><a class="side" href="/directory/target.html">Category</a></p> <p class="sideTEXTINDENT"><a class="side" href="/directory/target2.html">Subcategory</a></p></div>?>nothing happens (perhaps rightly so). What piece of this puzzle am I missing? Is there something I need to convert to PHP? Will the include tag read a plain HTML file?Thanks!Melissa
  3. I'm trying to figure out the best way to handle this, I'm hoping for advice. I have a sidebar that is the same in about 50 pages of html content. I don't want to have to modify 50 files when this sidebar changes, I'd like to somehow insert a link in those html files telling them where to find the updated sidebar. I cannot for the life of me figure out how to look that up. Is it a CSS function? PHP?If someone could point me in the right direction, that would be great. Thanks!

×
×
  • Create New...