1,105,221 Community Members

how to insert html file into another html

Member Avatar
mani_1991
Newbie Poster
21 posts since Aug 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hai,
any one can solve my doubt...

is it possible to insert one html file to antoher html file...????

if possible how to do it..???

please give any example.....?????

thanks.. in advance....

Member Avatar
marases
Junior Poster in Training
93 posts since Sep 2010
Reputation Points: 11 [?]
Q&As Helped to Solve: 7 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi,

If this is a php page you could use:

<?php include('file.html'); ?>

If this help??

Thanks,
Marais

Member Avatar
Dandello
Posting Whiz in Training
258 posts since May 2010
Reputation Points: 8 [?]
Q&As Helped to Solve: 23 [?]
Skill Endorsements: 0 [?]
 
0
 

Or you could use a Server Side Include (SSI)

<!--#include virtual="file.html" -->

OR you could use frames, and if you don't care if it isn't strictly compliant to standards, you can use iframes.

Member Avatar
marases
Junior Poster in Training
93 posts since Sep 2010
Reputation Points: 11 [?]
Q&As Helped to Solve: 7 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi,

Thanks for that also now i don't need php for such a simple include..

:D

Member Avatar
Dandello
Posting Whiz in Training
258 posts since May 2010
Reputation Points: 8 [?]
Q&As Helped to Solve: 23 [?]
Skill Endorsements: 0 [?]
 
0
 

Using SSI does mean you have you make sure your hosting service allows it.

Member Avatar
marases
Junior Poster in Training
93 posts since Sep 2010
Reputation Points: 11 [?]
Q&As Helped to Solve: 7 [?]
Skill Endorsements: 0 [?]
 
0
 

thanks for that mate!

<?php echo "THANKS!!"; ?>
Member Avatar
kooia
Light Poster
35 posts since Apr 2010
Reputation Points: 1 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

What about frames/iframes? W3schools frames. You would have to mess around with the CSS, though, so the PHP sounds pretty good.

Member Avatar
mani_1991
Newbie Poster
21 posts since Aug 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Or you could use a Server Side Include (SSI)

<!--#include virtual="file.html" -->

OR you could use frames, and if you don't care if it isn't strictly compliant to standards, you can use iframes.

thanks for all replays

it help very much to me

once agin thanks................

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article