1.11M Members

how to insert html file into another html

 
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....

 
0
 

Hi,

If this is a php page you could use:

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

If this help??

Thanks,
Marais

 
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.

 
0
 

Hi,

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

:D

 
0
 

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

 
0
 

thanks for that mate!

<?php echo "THANKS!!"; ?>
 
0
 

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

 
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 six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article