Jump to content

[SOLVED] Cant work this out - php making page distorted


internize

Recommended Posts

Hi everyone, i hope someone can help me with this because im tearing my hair out. I have a page on my site that contains php.

 

Here is the page :www.internize.netau.net/seolinks/links.php

 

Could someone please have a look at the source code and tell me why the page is coming out looking the way it is?

 

I've had problems like this before but its been due to an extra </html> tag being there, the header and footer files contain nothing.

 

Any ideas?  :shrug:

Well I think it's because you don't have a return after the closing ?> tag.

 

Heres an example of what I mean:

 

<html>

    <head>

        <title>Test</title>

    </head>

    <body>

        <?php
            echo "<p>Hello ";
        ?> < -- press enter on this line.
        World!</p>

    </body>

</html>

 

I'm not really sure why it does that but that should fix it.

Hi, i have sorted the problem, there was a css file in the within the php script that was conflicting with my sites css file. I just deleted the second css file and that sorted the problem but thanks for the advice, i'll check the w3 validation now and remove the references to the second css file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.