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!
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!
For example: http://yoursite.com/index.php?page=homepage http://yoursite.com/index.php?page=gallery http://yoursite.com/index.php?page=video if(isset($_GET['page']) && $_GET['page'] == 'homepage') { echo 'This is home page'; } Code (php):