View Full Version : Searching dynamic content(php) in an iframe
timhodge
04-07-2007, 08:01 PM
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.
wrensoft
04-08-2007, 09:24 AM
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 (http://www.htmlhelp.com/faq/html/frames.html#frame-context).
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 (http://validator.w3.org/check?uri=http%3A%2F%2Fhavasuchamber.com%2Finner.p hp%3Fdbfile%3Dstaff.php).
timhodge
04-08-2007, 07:37 PM
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.
<?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.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.