kagedwebdesign Posted September 29, 2009 Share Posted September 29, 2009 I am currently having an issue with something on this website I'm working on. When I load the index.php file, everything shows up right. All of my subpages show up the right way, except the contact.php page, which is called with "?id=contact." For some reason, when that page gets called, all that shows up is the background...it doesn't show a 404 error or anything...just the background image... If you wnat to go take a look, click here. Take a look at all of the pages that load off the top nav bar, and then click on Contact...I'm not sure why it's doing that...I've changed the encoding a few times to different things, but that hasn't seemed to have any effect on it... any suggestions would be great! Thanks! Kyle J. Schultz Quote Link to comment Share on other sites More sharing options...
Bricktop Posted September 29, 2009 Share Posted September 29, 2009 Hi Kyle, You don't have any header code similar to: <!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>Untitled Document</title> but your about us, services and listings pages do (where it's on line 110 not at the very top of your code where it should be) Try using the correct header code similar to above but releavnt to your code and try again. Hope this helps. Quote Link to comment Share on other sites More sharing options...
kagedwebdesign Posted September 29, 2009 Author Share Posted September 29, 2009 Hi Kyle, You don't have any header code similar to: <!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>Untitled Document</title> but your listsings and about pages do (where it's on line 110 not at the very top of your code where it should be) Try using the correct header code similar to above but releavnt to your code and try again. Hope this helps. Bricktop - I added in the header codes on the index.php and all of the subpages, but its still not giving me anything...the reason its showing up at line 110 is the PHP calling code that I'm using... <?php if ($_GET["id"]) { if (file_exists($_GET["id"] . ".php")) { include($_GET["id"] . ".php"); } else { include("error.php"); } } else { include("main.php"); } ?> It pulls the page, and strips itself of the php code above, displaying just the page when you try to view the source code... But even once I added in the headers on the main index page and the other subpages that did nothave it...still nothing...I'm most confused because i've used this code before for other websites, and I have never come across this problem....:-\ Quote Link to comment Share on other sites More sharing options...
Bricktop Posted September 29, 2009 Share Posted September 29, 2009 Hi Kyle, Try adding --> to the second style tag, i.e. <style type="text/css"> <!-- a.kaged:link {color: #000000; text-decoration:underline;} a.kaged:active {color: #000000; text-decoration:none;} a.kaged:visited {color: #000000; text-decoration:underline;} a.kaged:hover {color: #000000; text-decoration:none;} a.kaged2:link {color: #000000; text-decoration:underline; font-size="3"} a.kaged2:active {color: #000000; text-decoration:none; font-size="3"} a.kaged2:visited {color: #000000; text-decoration:underline; font-size="3"} a.kaged2:hover {color: #000000; text-decoration:none; font-size="3"} .style4 {font-size: x-small} --> </style> Hope this helps. Quote Link to comment Share on other sites More sharing options...
kagedwebdesign Posted September 29, 2009 Author Share Posted September 29, 2009 Hi Kyle, Try adding --> to the second style tag, i.e. <style type="text/css"> <!-- a.kaged:link {color: #000000; text-decoration:underline;} a.kaged:active {color: #000000; text-decoration:none;} a.kaged:visited {color: #000000; text-decoration:underline;} a.kaged:hover {color: #000000; text-decoration:none;} a.kaged2:link {color: #000000; text-decoration:underline; font-size="3"} a.kaged2:active {color: #000000; text-decoration:none; font-size="3"} a.kaged2:visited {color: #000000; text-decoration:underline; font-size="3"} a.kaged2:hover {color: #000000; text-decoration:none; font-size="3"} .style4 {font-size: x-small} --> </style> Hope this helps. I have absolutely no idea why that worked, but it worked. Cause I feel like that should've affected all of my pages...but thank you so much for your help!!! Quote Link to comment Share on other sites More sharing options...
Bricktop Posted September 29, 2009 Share Posted September 29, 2009 Hi Kyle, It's because you'd opened up an HTML comment with the <!-- code but hadn't added the --> to close it, so everything after the <!-- was being classed as a comment and not showing up. Hope this helps. Quote Link to comment Share on other sites More sharing options...
kagedwebdesign Posted September 29, 2009 Author Share Posted September 29, 2009 Hi Kyle, It's because you'd opened up an HTML comment with the <!-- code but hadn't added the --> to close it, so everything after the <!-- was being classed as a comment and not showing up. Hope this helps. Got it...thanks again, Bricktop Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.