Skype - Submit articles - Wordpress Themes - Debt Consolidation - Watch Anime

PDA

View Full Version : Php inside html document - IE won't display


Roze
Jun 20th 2005, 10:25 am
Hello, this is very strange.

I've got a very simple php include in the middle of an html document. I've told .htaccess to deal with php in html files.

<?php
include "file";
?>

The page displays fine in Firefox but IE cuts the page off where the code is....Yet I select View Source and it's kind of in there. Do you have any idea what could possibly do this? I've looked for the obvious but can't figure it out. Thanks, smart people.

noppid
Jun 20th 2005, 10:29 am
A link would be more helpful.

Is the text that you insert being integrated into the existing html properly?

Roze
Jun 20th 2005, 10:34 am
I knew you'd respond. These surrounding InstanceBeginEditable tags just show it's location in the middle of a dreamweaver template. Like I said, it's working in FF.

<div class="content">
<!-- InstanceBeginEditable name="Content" -->
<?php
include "guestbook/guestbook.php";
?>

<!-- InstanceEndEditable --></div>

it's http://www.jamesgourlay.com/guestbook.html

noppid
Jun 20th 2005, 10:55 am
The source code shows me that you are emmbedding a fully declared, well almost, html doc inside the main html page.

<html>
<head>
</head>
<body>


<html>
<head>
</head>
<body>
</body>
</html>

</body>
</html>


Is basically what the browser has to deal with. You need to include the forms as sub-parts from the page, not the entire page.

Roze
Jun 20th 2005, 11:24 am
Thank you so much, that was very stupid of me to miss. I guess I did notice it was doing that but didn't think about what effects it might have. You are awesome!

noppid
Jun 20th 2005, 5:23 pm
Glad it helped. :)