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> </a>
<a href="/joomhb/galleries/guest/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">GUEST</a><a> </a>
<a href="/joomhb/galleries/macro/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">MACRO</a><a> </a>
<a href="/joomhb/galleries/misc/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">MISC</a><a> </a>
<a href="/joomhb/galleries/people/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">PEOPLE</a><a> </a>
<a href="/joomhb/galleries/places/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">PLACES</a><a> </a>
<a href="/joomhb/galleries/wildlife/" style="text-decoration: none; padding-left: 2px; padding-right: 2px">WILDLIFE</a><a> </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
Using PHP Include
Moderator: General Moderators