Chubichan Posted December 14, 2008 Share Posted December 14, 2008 I have this statement at the bottom of all my pages. <?php include ('includes/footer.php'); ?> Some pages it will work just fine. But on my contact page and my locations page, it is not there. It is pulling the html but not the style sheet that the footer.php is supposed to have. On some pages it works, on some, nothing. They are all pulling the same file from the same location! It makes no sense! I host with Aptohost and I I have had very weird problems with them before, but nothing this bizarre. If anyone wants to take a look at the site it is... www.drmdoyle.com BTW, I had this working perfectly fine, changed nothing to do with the footer and now suddenly, I have this problem. You can navigate through the top link and perfectly see what I am talking about on the locations and contact pages with the footer. The contact page even throws the navigation out the window. Here is my code for the contact.php page. <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Dr. Michael D. Doyle | Contact</title> <LINK REL=StyleSheet HREF="contact.css" TYPE="text/css" /> <script defer type="text/javascript" src="pngfix.js"></script> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <div id="container"> <?php include ('includes/top2.php'); ?> <?php include ('includes/nav_bar.php'); ?> <h3>Contact Our Office</h3> <p> Dr Doyle and staff want to make it very easy to get in touch with one another. That is why we have implemented this online contact form so you can send us a direct message. We recieve these messages just like we would recieve an email. All you have to do is provide your name, email, phone number, a subject, and a detailed message. Everything in the form is required.</p> <h4>Dr. Michael M. Doyle D.D.S.<br /> 600 Professional Drive<br /> Warner Robins, GA 31088<br /> 478-923-0011 </h4> <form action="process.php" method="post"> <div><label for="name">Name:</label><input name="username" type="text" id="username" size="30" /></div> <div><label for="email">Email:</label><input name="email" type="text" id="email" size="30" /></div> <div><label for="phone">Phone:</label><input name="phone" type="text" id="phone" size="30" /></div> <div><label for="subj">Subject:</label><input name="subj" type="text" id="subj" size="30" /></div> <div><label for="mess">Message:</label><textarea name='mess' rows=5 cols=26> </textarea></div> <div class="actions"><input type="submit" input name="submit" value="Submit" class="submit"/></div> </form> <?php include ('includes/footer.php'); ?> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/ Share on other sites More sharing options...
phpSensei Posted December 14, 2008 Share Posted December 14, 2008 Post your location page code please, and the footer code also. Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714971 Share on other sites More sharing options...
Chubichan Posted December 14, 2008 Author Share Posted December 14, 2008 See above for the contact.php code. Here is the footer.php code <LINK REL=StyleSheet HREF="footer.css" TYPE="text/css" /> <script defer type="text/javascript" src="pngfix.js"></script> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <ol id="footer"> <li class="first"><a href="mission_statement.php">Mission Statement</a></li> <li class="first"><a href="disclaimer.php">Disclaimer</a></li> <li class="last"><a href="#" target="_blank">Site Design</a></li> </ol> </body> </html> Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714973 Share on other sites More sharing options...
Chubichan Posted December 14, 2008 Author Share Posted December 14, 2008 footer works on locations, but it does screw up the navigation. Here is the navigation code: <LINK REL=StyleSheet HREF="nav_bar.css" TYPE="text/css" /> <script defer type="text/javascript" src="pngfix.js"></script> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <ol id="nav_bar"> <li class="first"><a href="meet_our_team.php">Meet our Team</a></li> <li class="first"><a href="patient_forms.php">Patient Forms</a></li> <li class="first"><a href="payment_information.php">Payment Information</a></li> <li class="first"><a href="locations.php">Locations</a></li> <li class="last"><a href="contact.php">Contact</a></li> </ol> </body> </html> Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714974 Share on other sites More sharing options...
Chubichan Posted December 14, 2008 Author Share Posted December 14, 2008 Here is the locations.php code. <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Dr. Michael D. Doyle | Locations</title> <LINK REL=StyleSheet HREF="locations.css" TYPE="text/css" /> <script defer type="text/javascript" src="pngfix.js"></script> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <div id="container"> <?php include ('includes/top2.php'); ?> <?php include ('includes/nav_bar.php'); ?> <?php include ('includes/footer.php'); ?> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714975 Share on other sites More sharing options...
Chubichan Posted December 14, 2008 Author Share Posted December 14, 2008 willing to zip this puppy up and send it to someone who might be able to show me what it is that I have done. Work 100% fine an hour ago. Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714976 Share on other sites More sharing options...
mmarif4u Posted December 14, 2008 Share Posted December 14, 2008 Try it with require_once instead of include. It will throw an error if there is something wrong with the inclusion, if your error reporting is enabled. Like: <?php require_once ("includes/footer.php");?> Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714980 Share on other sites More sharing options...
phpSensei Posted December 14, 2008 Share Posted December 14, 2008 Did you edit any of css for the contact or location? Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714991 Share on other sites More sharing options...
phpSensei Posted December 14, 2008 Share Posted December 14, 2008 Is this the right directory for the css? <LINK REL=StyleSheet HREF="contact.css" TYPE="text/css" /> edit: nevermind thats not it, what did you edit that one hour? Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714992 Share on other sites More sharing options...
Chubichan Posted December 14, 2008 Author Share Posted December 14, 2008 Everything works! Just needed to pull the CSS linking to the main php document. Just a n00b mistake...all is well. Cheers everyone! Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714994 Share on other sites More sharing options...
phpSensei Posted December 14, 2008 Share Posted December 14, 2008 Everything works! Just needed to pull the CSS linking to the main php document. Just a n00b mistake...all is well. Cheers everyone! there you go, no need to pull your hair out lol mark solved? Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-714998 Share on other sites More sharing options...
Chubichan Posted December 31, 2008 Author Share Posted December 31, 2008 Yes, thank you all! Link to comment https://forums.phpfreaks.com/topic/136895-pulling-my-hair-out/#findComment-726751 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.