I need some HTML output *just* in the homepage, help please!

Discussion in 'PHP' started by fferrero, Jul 10, 2010.

  1. #1
    Hi all!

    I've been trying without success to show an html block of content just in the home page. I know this can be done with PHP, but I don't know how!

    I don't think would be more than 3 lines of code, would you please help me?

    Thanks in advance!
     
    fferrero, Jul 10, 2010 IP
  2. Kaimi

    Kaimi Peon

    Messages:
    60
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    <?php
    print <<<END
    some
    html
    code
    END;
    
    PHP:
     
    Kaimi, Jul 10, 2010 IP
  3. fferrero

    fferrero Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for helping!! Anyways, are you sure that's OK? I think that code would show some HTML in all the pages. I just need the html code in the home page.

    Also, I think you miss an "?>" at the end. Or that's ok? I'm sorry, I'm just a newbie at this.

    Thanks!
     
    fferrero, Jul 10, 2010 IP
  4. fferrero

    fferrero Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Anyone, please?

    I just need that to move forward.

    Thanks!
     
    fferrero, Jul 10, 2010 IP
  5. XDMCoder

    XDMCoder Peon

    Messages:
    50
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    XDMCoder, Jul 10, 2010 IP