[Nfb-web] Looking for a way to include a block of code on many pages
Peter Donahue
pdonahue1 at sbcglobal.net
Mon Apr 26 02:18:40 UTC 2010
Hello Robert and everyone,
A number of Web languages have include tags/functions that allow you to
do exactly that. Here are several of them.
ColdFusion:
<cfinclude template="logo.cfm">
PHP:
<?php include "logo.php"; ?>
Server-Side Include, (SSI):
<!--#include virtual="/logo.shtml" -->
There is also an include tag for ASP but I don't remember the syntax. In
each case the host must support the Web language in which you wish to create
your includes. If you wish to use ColdFusion be sure the server supports
ColdFusion. The same holds true for ASP, SSI, and PHP. This should work.
Peter Donahue
----- Original Message -----
From: "Robert Jaquiss" <rjaquiss at earthlink.net>
To: "NFB Webmaster's List" <nfb-web at nfbnet.org>
Sent: Sunday, April 25, 2010 7:32 PM
Subject: [Nfb-web] Looking for a way to include a block of code on many
pages
Hello:
I am putting a site together that will have many pages. On each page, I
would like to include a logo and subtitle. My question is, is there a way to
do this or do I just simply copy the code. I was hoping that there was
something like an include function like in C. Thank you.
Regards,
Robert
_______________________________________________
Nfb-web mailing list
Nfb-web at nfbnet.org
http://www.nfbnet.org/mailman/listinfo/nfb-web_nfbnet.org
To unsubscribe, change your list options or get your account info for
Nfb-web:
http://www.nfbnet.org/mailman/options/nfb-web_nfbnet.org/pdonahue1%40sbcglobal.net
More information about the NFB-Web
mailing list