Thread: drop down menu
View Single Post
  #2 (permalink)  
Old April 23rd, 2004, 03:47 PM
nikolai nikolai is offline
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, if your menu bar is plain HTML, you can save that HTML in a separate file (menu_bar.html might be a good name), and just include it in your PHP script:

<?php
echo "<html>....<body>";

include("menu_bar.html");

?>


However, you're really talking about page templates. A template is a basic layout for a page that specifies where everything goes, what colors, images, etc. belong on a page, but does NOT contain content.

There are many ways of using templates. I suggest starting with SMARTY to learn about PHP-driven templates.
  http://smarty.php.net/



Take care,

Nik
http://www.bigaction.org/
Reply With Quote