| | |
More than one Html page.
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2009
Posts: 20
Reputation:
Solved Threads: 0
You can use a PHP include, if you are using php. Create a file for your header and menus and name it something like header.php & menus.php. (they can be separate or together in one file) You can create one for your footer, too.
Then, on every page you want them, include them with php like this:
Your html pages need the .php extension for this to work.
Your page might look like this:
The header file might look like this:
The footer might look like this:
Then, on every page you want them, include them with php like this:
<?php include("header.php"); ?> Your html pages need the .php extension for this to work.
Your page might look like this:
HTML and CSS Syntax (Toggle Plain Text)
<html> <head> <title>Title</title> </head> <body> <?php include("header.php"); ?> <p>SOME CONTENT</p> <?php include("menus.php"); ?> <p>MAIN BODY CONTENT ... ... </p> <?php include("footer.php"); ?> </body> </html>
The header file might look like this:
HTML and CSS Syntax (Toggle Plain Text)
<img src="LOGO.JPG" /> This is our website slogan...
The footer might look like this:
HTML and CSS Syntax (Toggle Plain Text)
<p> ©Copyright 2009 by My website.com </p> <p> contact us anytime! </p>
hi siji44,
Honestly, its only four pages, don't think you need to go php. simply repeat your header divs using the same classes and if you coded it right, once you change your classes, all your pages will be changed as well.
Easy stuff!
Honestly, its only four pages, don't think you need to go php. simply repeat your header divs using the same classes and if you coded it right, once you change your classes, all your pages will be changed as well.
Easy stuff!
If this reply solved your problem, please add to my reputation and don't forget to mark this thread as solved.
•
•
•
•
Honestly, its only four pages, don't think you need to go php.
plan on expansion,
plan on 100,000 pages, and the database to support them, and the design features to import a single css and javascript file, and to php/ssi/cgi/asp(your choice) include all the common code.
Do it now when it is four pages, and you dont have to come back in a month and rewrite 40, come back in six months to rewrite 400 or more, and decide what code can be common.
imagine for example Wikipedia without the includes, and backend, every page requiring Joe Public to hand code menus to millions of other pages, for a minor edit .....
Dont think anyone would like to make edits
( WikiPedia is chosen as a design model that works )
Last edited by almostbob; Jul 1st, 2009 at 4:49 pm.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
I also may recommend framesets. You can look into that, i recommend for almost all web programming: www.w3schools.com.
Last edited by u8sand; Jul 1st, 2009 at 11:05 pm.
You are actually being quite ridiculous bob. Wikipedia is probably the worst example you could think of. It's like you telling him (in lame-mans terms) to build a factory, it can do EVERYTHING FOR YOU when he will only be manufacturing 5 products. Not every site grows exponentially.
If you planning on building a large site, i would recommend going CMS there are alot of open source solutions available. This will save you development time and templating is relatively simple.
If you planning on building a large site, i would recommend going CMS there are alot of open source solutions available. This will save you development time and templating is relatively simple.
If this reply solved your problem, please add to my reputation and don't forget to mark this thread as solved.
•
•
•
•
You are actually being quite ridiculous bob. Wikipedia is probably the worst example you could think of. It's like you telling him (in lame-mans terms) to build a factory, it can do EVERYTHING FOR YOU when he will only be manufacturing 5 products. Not every site grows exponentially.
If you planning on building a large site, i would recommend going CMS there are alot of open source solutions available. This will save you development time and templating is relatively simple.

Siji44, plan on some expansion,
There will always be a few more changes to make, additional pages
if you arent going to use some includes, make a template you can paste content into, with the head scripts appearance set
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
![]() |
Similar Threads
- Can I use a template html page within another html page (Site Layout and Usability)
- How To Hyperlink Normal HTML page with ASP.NET Page? (ASP.NET)
- Inserting (large) flash banner in HTML page (HTML and CSS)
- How to set html page size attributes (HTML and CSS)
- PHP in a html page? (PHP)
- How to Embed CheckList Box on HTML Page using Java Script (HTML and CSS)
- Calling function to add HTML to the page (ASP.NET)
Other Threads in the HTML and CSS Forum
- Previous Thread: Image resizw problem
- Next Thread: Send text messages from my website
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






