Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what's wrong with these tags? 2

Status
Not open for further replies.

simon551

IS-IT--Management
May 4, 2005
249
Hi, I can't understand why this markup is making my page stop functioning. If I take it out, my javascript will fire, but if I leave it in, nothing. All I can think is that there is something wrong with my notation, but can't tell, seems normal to me...


I'm using dreamweaver which also tells me this is an overlapping or unenclosed tag. but eh?

Code:
</div>
<div id="menu">
 	<?php require_once('../includes/NewMenu.inc.php'); ?>
</div>

if I take out the area between the <div></div> then my page is fine. But I need to include the file. sorry if I'm posting in the wrong forum.
 
monsnake, i think its pretty clear require_once is a PHP function, hence the enclosing php tags.


Everything looks good there. Maybe something inside the NewMenu.inc.php is the problem.


Have you checked that everything is o.k in that file. Maybe the missing tag is in there.


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
monsnake, i think its pretty clear require_once is a PHP function

It looks like a PHP function to me as well, but it doesn't mean that it is, and that could have been a start to the problem.

[monkey][snake] <.
 
Thanks, guys. Still trying to figure this out. I think you are probably right, Vacunita about it being a problem with the included menu file. I can't find the problem though. The menu works fine. Any ideas are appreciated.

NewMenu.inc.php
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<!--//the functionality for the drop-down was provided here: [URL unfurl="true"]http://www.alistapart.com/articles/horizdropdowns[/URL]
 --><script type="text/javascript" src="../Scripts/mainmenu.js"></script>
<style type="text/css">
/*@import "../Styles/layout.css";*/
@import "../Styles/menustyle.css";
</style>
</head>
<body>
<p><img src="../Images/logo.png" width="151" height="75" hspace="2" vspace="0" /></p>
<ul id="nav"> 
  <li><a href="../../../org/userlogin/index.php">Home</a></li> 
  <li><a href="../../../org/Clients/clientlist.php">Clients</a></li>
    <ul> 
	  <li><a href="../../../org/Clients/clientlist.php">Client List</a></li>
      <li><a href="../../../org/Contracts/contractsList_public.php">Contracts</a></li> 
      <li><a href="#">Team</a></li> 
      <li><a href="#">Offices</a></li> 
    </ul> 
  </li> 
  <li><a href="../../../org/Employees/Employee_list_full.php">Employees</a></li>
    <ul> 
	  <li><a href="../../../org/Employees/Employee_list_full.php">Employee List</a></li> 
      <li><a href="#">Org Chart</a></li> 
    </ul> 
  </li> 
  <li><a href="#">Projects </a> </li>
    <ul> 
      <li><a href="../../../org/Projects/projects_allactive.php">All Projects</a></li> 
      <li><a href="../../../org/Projects/projects_byClient.php">Projects by Client</a></li> 
      <li><a href="#">project what</a></li> 
    </ul> 
  </li> 
  <li><a href="../../../org/Timesheets/timesheet_redirect.php">Timesheets</a> 
    <ul> 
      <li><a href="../../../org/Timesheets/timesheet_main.php">New Timesheet </a></li> 
      <li><a href="../../../org/Timesheets/timesheet_redirect.php">Review Timesheets </a></li> 
      <li><a href="../../../org/Timesheets/timesheet_current.php">Current Timesheet</a></li> 
    </ul> 
  </li> 
  <li><a href="../../../org/ExpenseReports/erMain_R.php">Expense Reports </a> 
    <ul> 
      <li><a href="../../../org/ExpenseReports/erMain_C.php">New Expense Report </a></li> 
      <li><a href="../../../org/ExpenseReports/erMain_R.php">Review Expense Reports</a></li> 
      <li><a href="../../../org/ExpenseReports/erDetails_C.php">Current Expense Report</a></li> 
      <li><a href="../../../org/ExpenseReports/review_allexpenses.php">Review Expenses by Date</a></li> 
    </ul> 
  </li>
</ul> 
<p></p>
<ul>
      <li><a href="../../../org/forum/">Help and Support</a></li> 
</ul>
</body>
</html>
 
I agree. if you are including the file into an already complete file with doctype and everything, your included file, should only be the htl necessary to render the menu. no body html or doctype tags etc...

Second, you have a few errors in your included page, try fixing those also:


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top