Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
Template FillerCode Wizard, 12-30-2006 |
This is designed to interact with a basic HTML template, to use it, fill in all the details and then go to an area ie: script.php?pageid=87 and it will load that page. The files are included and only need to be text, HTML can be used but the formatting of the template is used as standard.
<?
//Paste this into your HTML document where you want the text to
//appear, see this in action at http://www.mattford.cjb.net
//Script by Matt Ford, free to distribute, edit and use as you want
//$a is the location of the text files containing the text to include
$a="http://www.yourhost.com/you/files";
switch ($id)
{
//Page 1
case 01:
$file="$a/page1.txt";
break;
//Page 2
case 02:
$file="$a/page2.txt";
break;
//default:
default:
$file="$a/index.txt";
}
include($file);
//© Matt Ford - http://www.matthewford.co.uk
?>
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments

