| 6:08 pm on Aug 29, 2005 (gmt 0)|
You have a DOCTYPE on line 49 in addition to the one at the first line.
| 6:17 pm on Aug 29, 2005 (gmt 0)|
negative. Heres my code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[edited by: pageoneresults at 8:01 pm (utc) on Aug. 29, 2005]
[edit reason] Removed Code Dump - Please Refer to TOS [/edit]
| 6:21 pm on Aug 29, 2005 (gmt 0)|
DOCTYPE must be on and only the first line. Your PHP might be adding an extra one at line 49. There is an html on line 50. Just ran it through the validator myself. That is, if your site is the same one as your email domain.
| 6:23 pm on Aug 29, 2005 (gmt 0)|
Thanks for the fast response
DOCTYPE is indeed on the first line. Line 49 in dreamweaver is
<td colspan="2" valign="top" bgcolor="#CFE1AF">
and line 50 is
| 6:27 pm on Aug 29, 2005 (gmt 0)|
Don't look at the code in PHP. Look at the generated HTML code. Remember the validator does not look at PHP, it looks at the resultant HTML code.
| 6:33 pm on Aug 29, 2005 (gmt 0)|
gah! all it took was removing one little
Well thank you for that great bit of help, now onto the rest of the site :)
Keep up the great work and thanks again!
| 6:33 pm on Aug 29, 2005 (gmt 0)|
You are most welcome. :-)
| 6:39 pm on Aug 29, 2005 (gmt 0)|
hmmmm.. ok almost out of the woods. When I removed the php coding, I still got the error. I then removed the   and the error disappeared. I reinserted my php, and the errors are back....
I checked the page for any additional   and not a one to be found.
It is clearly an issue with php tags.
| 7:16 pm on Aug 29, 2005 (gmt 0)|
It's not an issue with the php tags, per se. It's an issue with the html generated by the php script.
Here are lines 49-52:
49. <td colspan="2" valign="top" bgcolor="#CFE1AF">
50. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The file(s) you're including via your switch statement contain doctype, html and head tags, and is dropping them into the middle of your page where they don't belong.
And they're putting this at lines 78 and 79:
so they're also adding close-body and close-html tags in the middle of your page.
You need to edit the included pages so that they only contain the actual bit of html code and content to appear at that spot in your page. They should not be complete html documents with a doctype, head tags, body tags, etc.
| 7:39 pm on Aug 29, 2005 (gmt 0)|
aahh i see what youre saying! Ok, I can do that. Now also, I would prefer for these pages not to be crawled. Besides noting that in my robots.txt file, is it safe to add <meta name="robots" content="noindex"> or will that keep me in the red?
| 12:21 am on Aug 30, 2005 (gmt 0)|
|Now also, I would prefer for these pages not to be crawled. |
Is it the inserted section of the page that you don't want indexed, or the entire resulting page? If the former, rather than doing an include, you could insert the content as a separate page within a borderless
iframe - the separate page including a noindex meta tag or excluded by robots.txt.
| 12:43 am on Aug 30, 2005 (gmt 0)|
Yea I decided to exclude in robots first, then keep an eye to see what spiders are following directions. I have seen other posts on WW talking about how some bots actually follow instruction and some dont. If a certain majority of them dont follow it, then I will just add the line to each file and see what happens next lol
I appreciate all the help here, its been a real treat to learn from everyone here :)