I'm creating a new site using DW templates and have run into a funny bit of code weirdness.
Pages are here:
http://www.indiemanagers.com/members
I created the template and then created pages using the template. (NOTE: 1st line has a php include line: <?php include($_SERVER['DOCUMENT_ROOT']."/db/session.php"); ?>)
Uploaded the pages and for some strange reason I get two Doc Type headers and it puts in another Page Title "Untitled", which overwrites the proper page title. I tried to check in my code to see what was up and the only way to get rid of the double page title was to manually delete these lines from each page:
><?php include($_SERVER['DOCUMENT_ROOT']."/db/session.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
I re-uploaded the pages after taking that top bit out and it works fine, but now whenever I update the pages from the Template, it overwrites the top part again making all the documents "untitled".
It's almost like it's creating a page within a page, which is really strange.
Any ideas why this is happening?
Here is an example of the code (the funny bit is bolded):
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/ima_main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta name="Description" content="The Indie Managers Association (IMA) provides a unique opportunity for independent music managers to exchange ideas, suggestions and opinions amongst themselves and others on issues surrounding their independent community." />
<meta name="Keywords" content="IMA, Indie Managers Association, Music, Music Manager, IMMA, Independent Music Managers Association, Managers, Management, Music, Independent Managers, Managers Association, Management Association, Music Organizations, Music Managers, Personal Managers, Road Managers, Tour Managers, IMMA, Music Conferences, Music Books, Music Directory" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" media="screen" href="http://www.indiemanagers.com/IMA_NEW/styles/main.css" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>IMA | About the Indie Managers Association</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0112023347_0) return;
window.mm_menu_0112023347_0 = new Menu("root",87,14,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#cc9999","#663333","left","middle",2,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0112023347_0.addMenuItem("About the IMA","window.open('http://www.indiemanagers.com/about.htm', '_parent');");
mm_menu_0112023347_0.addMenuItem("FAQ","window.open('http://www.indiemanagers.com/faq.htm', '_parent');");
mm_menu_0112023347_0.hideOnMouseOut=true;
mm_menu_0112023347_0.menuBorder=1;
mm_menu_0112023347_0.menuLiteBgColor='#ffffff';
mm_menu_0112023347_0.menuBorderBgColor='#333333';
mm_menu_0112023347_0.bgColor='#993366';
window.mm_menu_0110151610_1 = new Menu("root",75,14,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#cc9999","#663333","left","middle",2,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0110151610_1.addMenuItem("Benefits","window.open('http://www.indiemanagers.com/membership_benefits.htm', '_parent');");
mm_menu_0110151610_1.addMenuItem("Registration","window.open('http://www.indiemanagers.com/amember/signup.php', '_parent');");
mm_menu_0110151610_1.hideOnMouseOut=true;
mm_menu_0110151610_1.menuBorder=1;
mm_menu_0110151610_1.menuLiteBgColor='#ffffff';
mm_menu_0110151610_1.menuBorderBgColor='#333333';
mm_menu_0110151610_1.bgColor='#993366';
window.mm_menu_0112010607_2 = new Menu("root",119,14,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#cc9999","#663333","left","middle",2,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0112010607_2.addMenuItem("General Resources","window.open('http://www.indiemanagers.com/resources.htm', '_parent');");
mm_menu_0112010607_2.addMenuItem("For Artists","window.open('http://www.indiemanagers.com/artist_resources.htm', '_parent');");
mm_menu_0112010607_2.addMenuItem("For Managers","window.open('http://www.indiemanagers.com/manager_resources.htm', '_parent');");
mm_menu_0112010607_2.addMenuItem("Downloadable PDF's","window.open('http://www.indiemanagers.com/dl_pdf.htm', '_parent');");
mm_menu_0112010607_2.hideOnMouseOut=true;
mm_menu_0112010607_2.menuBorder=1;
mm_menu_0112010607_2.menuLiteBgColor='#ffffff';
mm_menu_0112010607_2.menuBorderBgColor='#333333';
mm_menu_0112010607_2.bgColor='#993366';
window.mm_menu_0110145936_0 = new Menu("root",94,14,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#cc9999","#663333","left","middle",2,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0110145936_0.addMenuItem("Seminars","window.open('http://www.indiemanagers.com/seminars.htm', '_parent');");
mm_menu_0110145936_0.addMenuItem("Industry Events","window.open('http://www.indiemanagers.com/industry_events.htm', '_parent');");
mm_menu_0110145936_0.hideOnMouseOut=true;
mm_menu_0110145936_0.menuBorder=1;
mm_menu_0110145936_0.menuLiteBgColor='#ffffff';
mm_menu_0110145936_0.menuBorderBgColor='#333333';
mm_menu_0110145936_0.bgColor='#993366';
window.mm_menu_0112011018_0 = new Menu("root",97,14,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#cc9999","#663333","left","middle",2,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0112011018_0.addMenuItem("Search Directory","window.open('http://www.indiemanagers.com/directory/search_directory.htm', '_parent');");
mm_menu_0112011018_0.addMenuItem("Add Listing","window.open('http://www.indiemanagers.com/directory/directory_register.htm', '_parent');");
mm_menu_0112011018_0.addMenuItem("Edit Listing","window.open('http://www.indiemanagers.com/directory/edit_listing_form.htm', '_parent');");
mm_menu_0112011018_0.hideOnMouseOut=true;
mm_menu_0112011018_0.menuBorder=1;
mm_menu_0112011018_0.menuLiteBgColor='#ffffff';
mm_menu_0112011018_0.menuBorderBgColor='#333333';
mm_menu_0112011018_0.bgColor='#993366';
mm_menu_0112011018_0.writeMenus();
} // mmLoadMenus()
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript1.2" src="http://www.indiemanagers.com/IMA_NEW/navigation/mm_menu.js"></script>
</head>
<body onLoad="MM_preloadImages('navigation/about_f2.gif','navigation/contact_f2.gif','navigation/join_ima_f2.gif','navigation/manual_f2.gif','navigation/resources_f2.gif','navigation/events_f2.gif','navigation/management_directory_f2.gif','navigation/members_only_f2.gif','navigation/home_f2.gif')">
<table width="760" border="5" align="center" cellpadding="0" cellspacing="0" bordercolor="#cc9999" id="main_body">
<!--DWLayoutDefaultTable-->
<tr>
<td width=""><div align="right"><a href="http://www.indiemanagers.com" target="_parent"><img src="layout/masthead.jpg" alt="Click Here to Go to the IMA Home Page" width="740" height="146" border="0"></a>
</div>
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="nav_bar.png" fwbase="nav_bar.gif" fwstyle="Dreamweaver" fwdocid = "2006850332" fwnested="0" -->
<tr>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="2" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="48" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="9" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="62" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="10" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="68" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="9" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="54" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="10" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="76" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="9" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="55" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="10" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="153" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="9" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="97" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="10" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="47" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="2" height="1" border="0"></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="19"><img name="nav_bar_r1_c1" src="navigation/nav_bar_r1_c1.gif" width="740" height="2" border="0" alt=""></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="1" height="2" border="0"></td>
</tr>
<tr>
<td rowspan="3"><img name="nav_bar_r2_c1" src="navigation/nav_bar_r2_c1.gif" width="2" height="13" border="0" alt=""></td>
<td><a href="#" target="_parent" onMouseOut="MM_swapImgRestore();MM_startTimeout()" onMouseOver="MM_showMenu(window.mm_menu_0112023347_0,-3,20,null,'about');MM_swapImage('about','','navigation/about_f2.gif',1)"><img name="about" src="navigation/about.gif" width="48" height="10" border="0" alt="About the IMA"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c3" src="navigation/nav_bar_r2_c3.gif" width="9" height="13" border="0" alt=""></td>
<td><a href="http://www.indiemanagers.com/contact.htm" target="_parent" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','navigation/contact_f2.gif',1)"><img name="contact" src="navigation/contact.gif" width="62" height="10" border="0" alt="Contact the IMA"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c5" src="navigation/nav_bar_r2_c5.gif" width="10" height="13" border="0" alt=""></td>
<td><a href="#" target="None" onMouseOut="MM_swapImgRestore();MM_startTimeout()" onMouseOver="MM_showMenu(window.mm_menu_0110151610_1,-3,19,null,'join_ima');MM_swapImage('join_ima','','navigation/join_ima_f2.gif',1)"><img name="join_ima" src="navigation/join_ima.gif" width="68" height="10" border="0" alt="Join the Indie Managers Association"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c7" src="navigation/nav_bar_r2_c7.gif" width="9" height="13" border="0" alt=""></td>
<td><a href="http://www.indiemanagers.com/management_manual.htm" target="_parent" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('manual','','navigation/manual_f2.gif',1)"><img name="manual" src="navigation/manual.gif" width="54" height="10" border="0" alt="Purchase the IMA Management Manual"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c9" src="navigation/nav_bar_r2_c9.gif" width="10" height="13" border="0" alt=""></td>
<td><a href="#" target="None" onMouseOut="MM_swapImgRestore();MM_startTimeout()" onMouseOver="MM_showMenu(window.mm_menu_0112010607_2,-19,20,null,'resources');MM_swapImage('resources','','navigation/resources_f2.gif',1)"><img name="resources" src="navigation/resources.gif" width="76" height="10" border="0" alt="Helpful Resources and Tools for the Manager and Artist"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c11" src="navigation/nav_bar_r2_c11.gif" width="9" height="13" border="0" alt=""></td>
<td><a href="#" target="None" onMouseOut="MM_swapImgRestore();MM_startTimeout()" onMouseOver="MM_showMenu(window.mm_menu_0110145936_0,-18,21,null,'events');MM_swapImage('events','','navigation/events_f2.gif',1)"><img name="events" src="navigation/events.gif" width="55" height="10" border="0" alt="Industry Events & Seminars"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c13" src="navigation/nav_bar_r2_c13.gif" width="10" height="13" border="0" alt=""></td>
<td rowspan="2"><a href="#" target="None" onMouseOut="MM_swapImgRestore();MM_startTimeout()" onMouseOver="MM_showMenu(window.mm_menu_0112011018_0,38,22,null,'management_directory');MM_swapImage('management_directory','','navigation/management_directory_f2.gif',1)"><img name="management_directory" src="navigation/management_directory.gif" width="153" height="12" border="0" alt="Management Directory: SEARCH : LIST YOUR COMPANY"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c15" src="navigation/nav_bar_r2_c15.gif" width="9" height="13" border="0" alt=""></td>
<td rowspan="2"><a href="http://www.indiemanagers.com/amember/member.php" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('members_only','','navigation/members_only_f2.gif',1)"><img name="members_only" src="navigation/members_only.gif" width="97" height="12" border="0" alt="To Registered Members Login Page"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c17" src="navigation/nav_bar_r2_c17.gif" width="10" height="13" border="0" alt=""></td>
<td><a href="http://www.indiemanagers.com" target="_parent" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','navigation/home_f2.gif',1)"><img name="home" src="navigation/home.gif" width="47" height="10" border="0" alt="Back to the IMA Home Page"></a></td>
<td rowspan="3"><img name="nav_bar_r2_c19" src="navigation/nav_bar_r2_c19.gif" width="2" height="13" border="0" alt=""></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="1" height="10" border="0"></td>
</tr>
<tr>
<td rowspan="2"><img name="nav_bar_r3_c2" src="navigation/nav_bar_r3_c2.gif" width="48" height="3" border="0" alt=""></td>
<td rowspan="2"><img name="nav_bar_r3_c4" src="navigation/nav_bar_r3_c4.gif" width="62" height="3" border="0" alt=""></td>
<td rowspan="2"><img name="nav_bar_r3_c6" src="navigation/nav_bar_r3_c6.gif" width="68" height="3" border="0" alt=""></td>
<td rowspan="2"><img name="nav_bar_r3_c8" src="navigation/nav_bar_r3_c8.gif" width="54" height="3" border="0" alt=""></td>
<td rowspan="2"><img name="nav_bar_r3_c10" src="navigation/nav_bar_r3_c10.gif" width="76" height="3" border="0" alt=""></td>
<td rowspan="2"><img name="nav_bar_r3_c12" src="navigation/nav_bar_r3_c12.gif" width="55" height="3" border="0" alt=""></td>
<td rowspan="2"><img name="nav_bar_r3_c18" src="navigation/nav_bar_r3_c18.gif" width="47" height="3" border="0" alt=""></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="1" height="2" border="0"></td>
</tr>
<tr>
<td><img name="nav_bar_r4_c14" src="navigation/nav_bar_r4_c14.gif" width="153" height="1" border="0" alt=""></td>
<td><img name="nav_bar_r4_c16" src="navigation/nav_bar_r4_c16.gif" width="97" height="1" border="0" alt=""></td>
<td><img src="navigation/spacer.gif" alt="" name="undefined_2" width="1" height="1" border="0"></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1" id="header_and_text">
<tr>
<td><!-- InstanceBeginEditable name="Header Region" -->
<h2>About</h2>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td><!-- InstanceBeginEditable name="Main Text Area" -->The Indie Managers Association (IMA), formerly the Independent Music Managers Association (IMMA), was formed in August of 2002 as a private company based in Washington DC. The association was established with the understanding that there is a parallel and diverse music management community operating within today's industry that is inhabited by thousands of independent managers and companies. These independent managers and companies operate under a different set of rules and conditions from those that the major management companies operate under.
<p>The role of the Indie Managers Association is to help shape this and the next generation of independent music managers. The role of music managers will become more important as the industry landscape becomes more complex by virtue of the increased opportunities in the field, including merchandising, sponsorships, national touring, international licensing, international sub-publishing, paid digital downloads, creative regional and national distribution and more. The IMA provides a unique opportunity for independent music managers to exchange ideas, suggestions and opinions amongst themselves and others through regular live chats. An important part of the association is its management manual. The Association's management manual is designed to give independent managers a detailed and comprehensive understanding of how the music business works. The manual is organized as a 'do-it' manual that allows managers to evaluate their progress and make sure they are doing all that they can do to achieve success for their artists and other clients.</p>
<p>The Indie Managers Association includes in its membership all types of independent music managers: personal managers, road managers, business managers and tour managers. These members represent recording artists, songwriters, musicians and producers. Our vision is to empower and inspire the management community while restoring integrity to the image of the contemporary music manager.</p>
<!-- InstanceEndEditable --></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1" id="footer">
<tr>
<td height="80"><hr align="center" width="100%" size="3">
©2002-2005 IMA | <a href="http://www.mbstia.com/design.htm" target="_blank">Site Designed & Maintained by MBSTIA Design Division</a> | <a href="http://www.indiemanagers.com/privacy.htm" target="_blank">Privacy Policy</a> | <a href="http://www.indiemanagers.com/terms.htm" target="_blank">Terms</a> | Database Design by <a href="http://www.olifields.com/webdev.htm" target="_blank">OLIFIELDS</a><br>
<a href="mailto:webmaster@indiemanagers.com?subject=Email for IMA Webmaster">Email IMA Webmaster</a> </td>
</tr>
</table></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>