English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have: a title bar that will go on to 7 different pages.
I need: a way to put the coding on one HTML document so the other pages source that document and insert the coding from it onto the page. (for easy editing purposes)
I am: an amateur coder, so please make it as simple as possible. Thanks.

2007-02-13 14:38:36 · 3 answers · asked by Z3DA 3 in Computers & Internet Programming & Design

The first person to demonstrate how to do this without use of PHP or SSI, or any superfluous scripts (only use HTML and javascript) gets the ten points. I actually know a way, but can't get it to work, so a link to a demo would be awesome. thanks.

2007-02-16 20:45:19 · update #1

the method i'm trying is


What is wrong with the design??

2007-02-16 20:47:40 · update #2

3 answers

http://www.boutell.com/newfaq/creating/include.html

Everything youve ever wanted to know about it...

2007-02-13 14:49:46 · answer #1 · answered by Amanda H 6 · 0 0

Amanda's response is one way to do this. If your server does not support SSI (server-side includes), but it does support PHP, you can easily include files using the code below:

The only caveat to this method is that you will have to rename the file extensions all your web pages (that use the include file) to .php instead of .htm or .html.



You put the above code into each file (and change the file name to what you want, with no spaces in the file name). Your files can be fully HTML, with nothing special done to them if you put the PHP code in the PHP tags as shown above.

Hope this helps!

2007-02-14 00:22:31 · answer #2 · answered by Ronnieboy34 3 · 0 0

Server Side Includes is best and easiest. I have listed a source that help you.

2007-02-14 01:54:09 · answer #3 · answered by Zeya B 2 · 0 0

fedest.com, questions and answers