Jump to content

Recommended Posts

Compare the generated HTML from your PHP script with the working HTML and you should see the differences.

Here is the start of the working HTML
[!--html--][div class=\'htmltop\']HTML[/div][div class=\'htmlmain\'][!--html1--]<[color=blue]html xmlns[/color]="[color=orange]http://www.w3.org/1999/xhtml[/color]">
<[color=blue]head[/color]>

<[color=blue]title[/color]>Stories and Lies<[color=blue]/title[/color]>
<[color=blue]meta content[/color]="[color=orange]text/html; charset=iso-8859-1[/color]" http-equiv="[color=orange]Content-Type[/color]" />
<[color=blue]link rel[/color]="[color=orange]shortcut icon[/color]" href="[color=orange]images/favicon.ico[/color]" />
<[color=blue]link type[/color]="[color=orange]text/css[/color]" href="[color=orange]style.css[/color]" rel="[color=orange]stylesheet[/color]" />
<[color=blue]/head[/color]>

<[color=blue]body[/color]>
<[color=blue]div id[/color]="[color=orange]container[/color]">
<[color=blue]div id[/color]="[color=orange]top[/color]">

<![color=red]-- Edit your site name here --[/color]>
<[color=blue]h1[/color]><[color=blue]/h1[/color]>
<![color=red]-- End edit --[/color]>

<[color=blue]/div[/color]>


<[color=blue]div id[/color]="[color=orange]nav[/color]">
<[color=blue]div id[/color]="[color=orange]navcontainertop[/color]"><[color=blue]/div[/color]>
<[color=blue]div id[/color]="[color=orange]navcontainer[/color]">

<[color=blue]html[/color]>
<[color=blue]head[/color]>
<[color=blue]title[/color]>Simple Colors<[color=blue]/title[/color]>
<[color=blue]meta content[/color]="[color=orange]text/html; charset=iso-8859-1[/color]" http-equiv="[color=orange]Content-Type[/color]" />
<[color=blue]link rel[/color]="[color=orange]shortcut icon[/color]" href="[color=orange]images/favicon.ico[/color]" />

<[color=blue]link type[/color]="[color=orange]text/css[/color]" href="[color=orange]style.css[/color]" rel="[color=orange]stylesheet[/color]" />
<[color=blue]/head[/color]>

<[color=blue]div id[/color]="[color=orange]nav[/color]">



<![color=red]-- Edit Sidebar here --[/color]>
<[color=blue]h3[/color]>Navigation<[color=blue]/h3[/color]>
<[color=blue]P ALIGN[/color]="[color=orange]left[/color]">
<[color=blue]ul[/color]>[!--html2--][/div][!--html3--]

Here is the cooresponding section of the PHP generated HTML
[!--html--][div class=\'htmltop\']HTML[/div][div class=\'htmlmain\'][!--html1--]<[color=blue]html xmlns[/color]="[color=orange]http://www.w3.org/1999/xhtml[/color]">
<[color=blue]head[/color]>

<[color=blue]title[/color]>Stories and Lies<[color=blue]/title[/color]>
<[color=blue]meta content[/color]="[color=orange]text/html; charset=iso-8859-1[/color]" http-equiv="[color=orange]Content-Type[/color]" />
<[color=blue]link rel[/color]="[color=orange]shortcut icon[/color]" href="[color=orange]images/favicon.ico[/color]" />
<[color=blue]link type[/color]="[color=orange]text/css[/color]" href="[color=orange]style.css[/color]" rel="[color=orange]stylesheet[/color]" />
<[color=blue]/head[/color]>

<[color=blue]body[/color]>
<[color=blue]div id[/color]="[color=orange]container[/color]">
<[color=blue]div id[/color]="[color=orange]top[/color]">

<![color=red]-- Edit your site name here --[/color]>
<[color=blue]h1[/color]><[color=blue]/h1[/color]>
<![color=red]-- End edit --[/color]>

<[color=blue]/div[/color]>


<[color=blue]div id[/color]="[color=orange]nav[/color]">
<[color=blue]div id[/color]="[color=orange]navcontainertop[/color]"><[color=blue]/div[/color]>
<[color=blue]div id[/color]="[color=orange]navcontainer[/color]">

<[color=blue]html[/color]>
<[color=blue]head[/color]>
<[color=blue]title[/color]>Simple Colors<[color=blue]/title[/color]>
<[color=blue]meta content[/color]="[color=orange]text/html; charset=iso-8859-1[/color]" http-equiv="[color=orange]Content-Type[/color]" />
<[color=blue]link rel[/color]="[color=orange]shortcut icon[/color]" href="[color=orange]images/favicon.ico[/color]" />

<[color=blue]link type[/color]="[color=orange]text/css[/color]" href="[color=orange]style.css[/color]" rel="[color=orange]stylesheet[/color]" />
<[color=blue]/head[/color]>

<[color=blue]div id[/color]="[color=orange]nav[/color]">



<![color=red]-- Edit Sidebar here --[/color]>
<[color=blue]h3[/color]>Navigation<[color=blue]/h3[/color]>
<[color=blue]P ALIGN[/color]="[color=orange]left[/color]">
<[color=blue]ul[/color]>[!--html2--][/div][!--html3--]
You should notice that the generated HTML has another "<html>" and "<head>" tags in it. This is thowing off your display since the markup is nolonger valid.

Ken



Always leave your original question intact. Post a reply to the topic when it is solved.

Ken
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.