SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Jun 2005
    Posts
    269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Display iframe only on some pages - PHP command?

    Hi all,

    Is there a php code to tell an HTML iframe to only show on certain pages of a website?

    I have a forum and an iframe which loads some external content at the top, I'm trying to make it so when replying or creating a new topic the iframe doesn't load on links that contain :

    index.php?action=post

    Any help would be greatly received, thank you very much!

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    if (!isset($_GET['action']) || $_GET['action'] != 'post') {
        echo 
    '<iframe...';


  3. #3
    SitePoint Addict
    Join Date
    Jun 2005
    Posts
    269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome thank you so much Crmalibu!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •