including pages in pages

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Just a quick question...

When including a page inside another (include('page.php')), is it bad for
the second document to also have <head> and <body> tags etc? Im using
iframes currently, and it works, but getting the page to match the content
is kind of a javascript hack that only works after the page is loaded, not
counting the images. So the new page loads, doesnt fit the old page size,
and its changed. Not exactly fluid.


Re: including pages in pages

*** Theo wrote/escribió (Tue, 28 Sep 2004 06:26:08 -0000):
Quoted text here. Click to load it

That's malformed HTML.

Quoted text here. Click to load it

Sorry, I can't understand what you mean. But including external files in
PHP is the same as doing a copy+paste in your text editor. It has nothing
to do with frames, where external docs are merely linked.

-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions

Re: including pages in pages

Quoted text here. Click to load it

Thanks, I will me sure to leave out the info. The iframes method Im
currently using loads other pages inside the frame depending on what is
clicked in the main page (which doesnt reload). When the new page is
loaded... I mean 'after' the new page is loaded, the iframe size is
changed to match the new content with some javascript. The other problem
of course is that iframes only works in the newest browsers.

Site Timeline