Whats wrong in this code? I cant figure it out?

Sorry if this is the wrong section but I didn’t know where to post this.

So I can’t seem to see what is wrong with this. Any help is much appreciated!



<?php
/*
UserCake Version: 2.0.1
http://usercake.com
*/
require_once("models/config.php"):
if (!securePage($_SERVER['PHP_SELF'])){die();}
require_once("models/header.php");

echo "
<body>
<div id='wrapper'>
<div id='top'><div id='logo'></div></div>
<div id='content'>
<h1>Portal Page</h1>
<h2>Version 1.0 - KM Systems</h2>
<div id='left-nav'>";
include("left-nav.php");

echo "
</div>
<div id='main'>

<p>
This page will now check to see what permissions you have, and serve the correct page according to your profile.
<br>
<i>Note: The portal is still being setup. Please wait a few says for this to be updates. I'm working on it when I get in from work each night. </i>
<p>
<iframe src="http://www.linnworks.net/ " sytle="border:0px #ffffff none;" name="Portal" scrolling="yes" frameborder="0" marginheight="0px"
marginwidth="0px" height="800px" width="1100px" allowfullscreen></iframe>
</p>
</p>
</div>
<div id='bottom'</div>
</div>
</body>
</html>";

?>

This does not look quite right.

Actually, neither does this:

We cannot nest P-Nodes.

HTML has probably evolved in directions I have yet to explore being quite removed from my level of involvement of ten or so years ago. It may allow block level elements inside a P now, but I would still shy away from doing it. An iframe is a complete document environment set in a closed frame. It should rightly be housed in a DIV-Node, not a P.

1 Like