Jump to content


Photo

PHP/HTML/CSS newbie question.


  • Please log in to reply
1 reply to this topic

#1 alys

alys
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 04 June 2006 - 02:12 PM

Sorry, I had a problem which was posted here, but I found an error in my php coding, so it is all fixed now.


[img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 04 June 2006 - 02:24 PM

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--]<html xmlns="http://www.w3.org/1999/xhtml">
<head>

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

<body>
<div id="container">
<div id="top">

<!-- Edit your site name here -->
<h1></h1>
<!-- End edit -->

</div>


<div id="nav">
<div id="navcontainertop"></div>
<div id="navcontainer">

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

<link type="text/css" href="style.css" rel="stylesheet" />
</head>

<div id="nav">



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

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

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

<body>
<div id="container">
<div id="top">

<!-- Edit your site name here -->
<h1></h1>
<!-- End edit -->

</div>


<div id="nav">
<div id="navcontainertop"></div>
<div id="navcontainer">

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

<link type="text/css" href="style.css" rel="stylesheet" />
</head>

<div id="nav">



<!-- Edit Sidebar here -->
<h3>Navigation</h3>
<P ALIGN="left">
<ul>[!--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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users