1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Php inside html document - IE won't display

Discussion in 'PHP' started by Roze, Jun 20, 2005.

  1. #1
    Hello, this is very strange.
    SEMrush
    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";
    ?>
    PHP:
    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.
     
    Roze, Jun 20, 2005 IP
    SEMrush
  2. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #2
    A link would be more helpful.

    Is the text that you insert being integrated into the existing html properly?
     
    noppid, Jun 20, 2005 IP
  3. Roze

    Roze Guest

    Messages:
    403
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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>
    PHP:
    it's http://www.jamesgourlay.com/guestbook.html
     
    Roze, Jun 20, 2005 IP
  4. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #4
    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.
     
    noppid, Jun 20, 2005 IP
  5. Roze

    Roze Guest

    Messages:
    403
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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!
     
    Roze, Jun 20, 2005 IP
  6. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #6
    Glad it helped. :)
     
    noppid, Jun 20, 2005 IP