generating menus

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
larissahn
Forum Newbie
Posts: 3
Joined: Wed Apr 08, 2009 9:42 pm

generating menus

Post by larissahn »

i'd like to know how u generate menus using php. is there an independent .php file exclusively for the menu? i ask this because i wanted to make some changes to the menu of a website and, in dreamweaver, when i was working on a particular page, i could read the code for the menu but i couldn't modify it.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: generating menus

Post by Christopher »

You can include a separate PHP files or put the PHP code inline. I don't know how it is implemented in the page you have. Maybe post some code.

PS - Please write out words and capitalize properly. We have people from everywhere who contribute to this forum and we want posts to be as readable as possible. Thanks.
(#10850)
larissahn
Forum Newbie
Posts: 3
Joined: Wed Apr 08, 2009 9:42 pm

Re: generating menus

Post by larissahn »

ok, I apologize. I was really tired when I posted the last message. I want to upload the code for one of the pages of the website, but it says here that .php, .txt, and .docx extensions are not allowed. so what extensions ARE allowed? I would paste the code inline, but it's a lot and I'm not sure if it's against the rules. I'll paste the top part, but I'm not sure it'll be of much help being incomplete.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/default.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Volunteer in the Honduran Caribbean with Utila Centre for Marine Ecology conservation, ecology & development projects: dolphins, whale sharks, coral reefs, fisheries, mangroves, seagrass, scuba diving</title>
<!-- InstanceEndEditable -->
<meta name="description" content="Volunteer in the Caribbean during your gap year, career break or student internship working to protect threatened coral reefs, whales sharks, dolphins, mangroves, seagrass beds and fisheries; learn to scuba dive and gain experience in marine and terrestrial ecological survey techniques." />
<style type="text/css">
body { background-image:url(../assets/images/body-bkgd.gif); height: 100%; }
</style>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link rel="icon" type="image/png" href="http://www.utilaecology.org/favicon.png">
<link href="../assets/style/style.css" rel="stylesheet" type="text/css" />
<script src="../includes/cssmenus2/js/cssmenus.js" type="text/javascript"></script>
<script src="../includes/cssmenus2/js/animation.js" type="text/javascript"></script>
<link href="../includes/cssmenus2/skins/modern_blue/horizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>

<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="../assets/images/top-curve.gif" height="12"></td>
</tr>
<tr>
<td background="../assets/images/container-bkgd.gif"><table width="880" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="40"></td>
<td width="647" class="HeaderText">Supporting the management and sustainable use of marine biodiversity in Honduras <span class="style1">Photos by George Stoyle</span></td>
<td width="157" class="BodyText"><div align="right"><a href="../apply/">Apply</a> | <a href="../links/">Links</a> | <a href="../contact/">Contact</a></div></td>
<td width="29">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="4"><img src="../assets/images/banner.jpg" width="873" height="100" border="0" usemap="#Map" /></td>
<td width="7">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td background="../assets/images/container-bkgd.gif"><table width="880" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="840" height="25" bgcolor="#4C7AAB"><div id="cssMenu1" class="horizontal">
<ul class="modern_blue">
<li> <a href="../index.php">About</a>
<ul>
<li> <a href="../about/aims.php">Aims & Objectives</a> </li>
<li> <a href="../about/history.php">History</a> </li>
<li> <a href="../about/staff.php">Staff</a> </li>
<li> <a href="../about/interns.php">Interns</a> </li>
<li> <a href="../about/partners.php">Partners</a> </li>
<li> <a href="../about/funding.php">Funding</a> </li>
<!--<li> <a href="../about/facilities.php">Facilities</a> </li>-->
<li> <a href="../about/travel.php">Responsible Travel</a> </li>
<li> <a href="../about/acknowledgements.php">Acknowledgements</a> </li>
</ul>
</li>
Post Reply