Jump to content

How to Read all HTML Code after <body> and before </body>Tag?


cebuy

Recommended Posts

How to Read all HTML Code before <body> and after </body> Tags?  

 

I am doing an include... include("filename.html");

 

What I want to do is include all html code in filename.html between <body> and </body>..

so if my include page was

<html>
<head>
<title>My Page</title>
</head>
<body>
<font color="red">Hello world!</a>
<img src="mypicture.jpg">
etc etc... 

</body>
</html>

 

 

that it would include from filename.html to the page with the include only this part.. 

 

<font color="red">Hello world!</a>
<img src="mypicture.jpg">
etc etc...

 

 

instead of the entire thing like...

 

<html>
<head>
<title>My Page</title>
</head>
<body>
<font color="red">Hello world!</a>
<img src="mypicture.jpg">
etc etc... 

</body>
</html>

 

 

What is best way to do this? 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.