How do I make menu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Hillu
Forum Newbie
Posts: 13
Joined: Sun Jun 15, 2008 11:06 am
Location: Addis Ababa

How do I make menu

Post by Hillu »

Hi, I have a website which contains 10 pages. I'm using HTML,JavaScript and PHP. I want to define the menu and the logo once and have it in all the pages. How do I do that?

Thanks.
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: How do I make menu

Post by papa »

Create a page where you have your menu: menu.php

Put this code where and on which page you want the menu:

Code: Select all

<?php include_once("menu.php"); ?>
Post Reply