PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Searching dynamic content(php) in an iframe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Searching dynamic content(php) in an iframe

    I have a php page that has an iframe with dynamic content.

    Example... http://havasuchamber.com/inner.php?dbfile=staff.php

    staff.php is displayed in an iframe.

    I'm not able to index staff.php unless I do it by itself.
    (This works... http://havasuchamber.com/staff.php)
    Anyway to index this page and have the results show as the original link as in http://havasuchamber.com/inner.php?dbfile=staff.php

    Thanks for any input.
    Last edited by timhodge; Apr-07-2007, 09:04 PM. Reason: corrected links

  • #2
    My first comment would be, why use Frames? You are just complicating your life for no significant benefit.

    My 2nd comment would be that if you really want to frames, then you should add code so that when someone lands on one of your internal pages (without the frame), then you should re-direct them back to the top of your frameset. This is a very common design issue for people using frames. Here is one possible solution to fix your design.

    The HTML on this page also appears to be invalid, or maybe there is something really tricky going on, like creating an iFrame on the fly from Javascript. Which is never going to work with a search engine. There is two <html> sections in the code to start with, and the page fails HTML validation.

    Comment


    • #3
      Thanks... I will rethink this.
      Not sure why Dreamweaver had no doctype in the php page.

      I'm sorry... I had misspoken about the iframe. No iframes used here.

      This particular page was inserting the dynamic page (staff.php) into a table in the page inner.php.

      Code:
      <?php include($dbfile); ?>
      where dbfile was called like this...
      http://havasuchamber.com/inner.php?dbfile=staff.php

      I did this so my many "inner" pages would all only have one main page (inner.php) that included menus and basic structure and the dynamic content could be loaded into a table cell.

      Thanks for your help... I'll take several steps back and look at the compliance issues first.

      Comment

      Working...
      X