iFrame vs PHP include
I’m adding a menu of products to a site redesign and have used the PHP include function in the past. Since it seems that an iFrame can accomplish exactly the same thing, and also function more like frames, would it be a better choice? What’s the advantage of using a php include function (if there is one).
There is a funky issue as well. When I use the iFrame, I specify the height. If I don’t then it fits the insterted page, but, the page (menu) automatically expands and contracts via CSS to expose more choices. When it does this in an iFrame, it stays the same height, but adds a scroll bar.
If there is a way to make an iFrame expand and contract dynamically I think it might be the winner. Making the iFrame height 100% gave me nothing.