PHP issues with IE (internet explorer)

mbtforum

New Member
Messages
7
Reaction score
0
Points
0
So I've been coding my website using something like this for my website's coding:


<? include("/home/mbtadmin/public_html/head.php"); ?>

text here blah

<? include("/home/mbtadmin/public_html/foot.php"); ?>



Here's my page with coding: http://www.melonberrytea.exofire.net/head.php

And here's my index page: http://www.melonberrytea.exofire.net/index.php

Now this works fine in Firefox, but doesn't show up at all in Internet explorer. Is there something I'm missing or doing wrong? Or is there another way to make this work on IE.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
The page also doesn't show in Safari 4, which means it probably won't show in Chrome. The problem isn't the include statements but the fact that you're missing the <body>, </body> and </html> tags. Also, don't use short tags; enter PHP mode with "<?php", not "<?".

Lastly, <style> elements can only be children of <head>. Right now, you've got a <style> that comes after <head>.
 
Last edited:

mbtforum

New Member
Messages
7
Reaction score
0
Points
0
The page also doesn't show in Safari 4, which means it probably won't show in Chrome. The problem isn't the include statements but the fact that you're missing the <body>, </body> and </html> tags. Also, don't use short tags; enter PHP mode with "<?php", not "<?".

Lastly, <style> elements can only be children of <head>. Right now, you've got a <style> that comes after <head>.


I understand your first statement but what do you mean by <style> elements can only be children of <head> ?
Edit:
i figured it out

thank you :)
Edit:
i figured it out

thank you :)
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
While you're at it, run your pages through W3C's HTML validator. You're pages have some other problems that need addressing.
 
Top