Jump to content

[SOLVED] Page not showing up?


kagedwebdesign

Recommended Posts

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... :confused: 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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....:-\

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.