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:

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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