Using PHP Include

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
ejbevan
Forum Newbie
Posts: 1
Joined: Fri Sep 12, 2008 8:31 pm

Using PHP Include

Post by ejbevan »

Dear PHPers!

On the following page: Click here I'm trying to implement a PHP include script to call a menu saved in an external HTML. Basically, I currently have a simple HTML menu there, but each time I add a new gallery page, I don't want to have to amend the menu HTMLs in each page individually. My current script is:

</style>
<a href="/joomhb/galleries/abstract/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">ABSTRACT</a><a>&nbsp</a>
<a href="/joomhb/galleries/guest/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">GUEST</a><a>&nbsp</a>
<a href="/joomhb/galleries/macro/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">MACRO</a><a>&nbsp</a>
<a href="/joomhb/galleries/misc/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">MISC</a><a>&nbsp</a>
<a href="/joomhb/galleries/people/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">PEOPLE</a><a>&nbsp</a>
<a href="/joomhb/galleries/places/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">PLACES</a><a>&nbsp</a>
<a href="/joomhb/galleries/wildlife/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">WILDLIFE</a><a>&nbsp</a></div>

For the 8 menu links. How can I put all of this into another HTML or PHP file, and have this called. Fairly new to PHP so the more detail you can give, the better!!! You can view the full source by using the link above if its helps!!

Many thanks in advance, hopefully get this rectified soon!!

John B
Post Reply