Click to See Complete Forum and Search --> : include common code in web pages
rhendrix9
09-10-2003, 01:09 PM
Is there an html tag or some metod to include common code into pages. I want to create stuf that needs to appear on each page, i'm aufully tired on changing each page, i would like to just make a change once and the each page use the changed common code.
Not in HTML, but you can do this with server side languages. Which of those does your server support? PHP? SSI?
PHP (.php)
<?PHP
include "file.txt";
?>SSI (.shtml)
<!--# include file="file.txt"-->
Or get a decent editor, HTML-Kit (http://www.chami.com/html-kit/), then you can change the same code snippet in all your files.
rhendrix9
09-10-2003, 02:25 PM
it's a third party's isp. i'm not real sure what it is, kinda doing a favor and just trying to make it easier on me.
do you need access to the server to specify ssi's?
how about javascript