Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have several pages (20+) that need to have a disclaimer on it, as these web pages will be removed within the next year. Is there an easy way of adding the same sentence to each page without having to manually go in each page?
I was thinking of creating a frame and the top frame could have the disclaimer and the bottom frame would have the page the user navigates to...would this work? I just want to make sure what filename I have to specify in the frameset as this page would be different each time depending on where the user navigates to.

well i hate frames and thinking that there are only 20 identical pages, i would go for PHP. assuming you have PHP on your host...
<?php
// make a file that has the disclaimer on it
$filename = "disclaimer.html";
// insert the file into your page
include_once($filename);
?>put that code where you want the disclamier to be and save the page as a .php, eg. "index.php"
FBI
Agent
AIM: EliteAssassin187

There's 20+ pages and the content is not identical but I do need that disclaimer on each page in that folder. I should've mentioned thse are cold fusion pages and php would not be an option at this point.


Thanks folks. But I would have to go into each page to add that tag which is what I want to avoid.
Anways, I tried frames (which I also do not like) but it serves it purpose in this case. These pages are very content rich with a lot of links and not written properly (i.e. hard coded menu items...argh!) but like I said they will be removed by the end of year.
The only problem with frames is that it opens links which are on different servers within in the same frame/target so a total different website still has that disclaimer. The only way I can think of fixing that is to specify the target for each link...also something I want to avoid.
Thanks again.

If making a frameset and modifying all the links is less work than using an include then I guess the sky isn't blue.
I have not used Cold Fusion, but I have used several other wed development technologies that support includes. It should take you less than 30 minutes to set it all up.
First create the disclaimer as an include file (check Cold Fusion help). Ok, that should take mayby 5 or 10 minutes depending on how competent you are. Then open one of the pages where you need to include the disclaimer, and at the very end of the page content put the necessary code to include the disclaimer. That might take another 5 or 10 minutes the first time since you will need to lookup the method of doing that in Cold Fusion. Then just copy and past the same code at the bottom of each page.
Then whenever you need to modify the disclaimer (or remove it completely) just open the disclaimer file and change it there. You never need to modify the other pages again.

![]() |
Connect ColdFusion to Lot...
|
php forms
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |