Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
How do I include one HTML file in another?
Old 04-16-2009, 10:44 AM How do I include one HTML file in another?
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
How do I include one HTML file in another?
asmalik12 is offline
View Public Profile Visit asmalik12's homepage!
 
 
Register now for full access!
Old 04-16-2009, 11:25 AM Re: How do I include one HTML file in another?
thefandango's Avatar
Extreme Talker

Posts: 215
Trades: 0
Do you mean display rather than include? If so use an iframe. If you mean include then you should read about using Server Side Includes, which allow you to call other other files in using an SSI call on the page.
__________________

Please login or register to view this content. Registration is FREE


Last edited by thefandango; 04-16-2009 at 11:31 AM..
thefandango is offline
View Public Profile
 
Old 04-16-2009, 11:43 AM Re: How do I include one HTML file in another?
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
There is also Ajax
http://www.dynamicdrive.com/dynamici...jaxcontent.htm

This can also be used with lightbox and other things.
racer x is offline
View Public Profile Visit racer x's homepage!
 
Old 04-16-2009, 04:04 PM Re: How do I include one HTML file in another?
4ndr3's Avatar
Novice Talker

Posts: 10
Name: André Freitas
Location: Madeira, Portugal
Trades: 0
Hi,
Is simpler using a PHP require, like this:
<?php require('header.php'); ?>

In the file you want to include just use simply HTML code.

I suggested this because Iframes requires more line codes and is more hard in formating in the correct position.

Regards.
__________________
Personal Blog >
Please login or register to view this content. Registration is FREE
4ndr3 is offline
View Public Profile Visit 4ndr3's homepage!
 
Old 04-17-2009, 10:23 AM Re: How do I include one HTML file in another?
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
Quote:
Originally Posted by 4ndr3 View Post
Hi,
Is simpler using a PHP require, like this:
<?php require('header.php'); ?>

In the file you want to include just use simply HTML code.

I suggested this because Iframes requires more line codes and is more hard in formating in the correct position.

Regards.
But my page is .html
asmalik12 is offline
View Public Profile Visit asmalik12's homepage!
 
Old 04-17-2009, 10:54 AM Re: How do I include one HTML file in another?
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by asmalik12 View Post
But my page is .html
Change the .html to .php

Here's a good example of how to include:

Make your your html document like this:

Code:
<html>
<body>
<a href="http://www.example.com/index.php">Home</a> - 
<a href="http://www.example.com/about.php">About Us</a> - 
<a href="http://www.example.com/links.php">Links</a> - 
<a href="http://www.example.com/contact.php">Contact Us</a> <br />
Create an index.php file to look like this:

Code:
<?php include("menu.php"); ?>
<p>This is my home page that uses a common menu to save me time when I add
new pages to my website!</p>
</body>
</html>
That's how you 'simplify the process'...Enjoy!
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
View Public Profile
 
Old 04-17-2009, 10:55 PM Re: How do I include one HTML file in another?
Super Talker

Posts: 138
Name: Shawn Lindsey
Location: Kentucky
Trades: 0
Are you talking about displaying another web page inside a web page? If so this is done by using "Iframe" it allows you to display a page inside a page.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

ShawnITSolution is offline
View Public Profile Visit ShawnITSolution's homepage!
 
Old 04-20-2009, 06:16 AM Re: How do I include one HTML file in another?
Experienced Talker

Posts: 47
Name: Bryan Williamz
Trades: 0
Simply you can do it like
<?
php include("index.php");
?>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

cdesignz is offline
View Public Profile
 
Closed Thread     « Reply to How do I include one HTML file in another?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.56686 seconds with 12 queries