i hv figure to make u understand .. what in my head p.s its been years since last i read or did near developing so i need a push or a powerful kick :chomp:
Template Driven Programming comes in the scene. Now you have few simple and one best method. Example 1. Linktxtfile.txt Product Title 1 Product Description Product Price Mixed HTML / PHP Page <? list($title,$desc,$price) = file("Linktxtfile.txt"); ?> <h1><?=$title?></h1> <i><?=$desc?></i> <b><?=$price?></b>(USD) HTML: Example 2. Linktxtfile.txt Product Title 1 Product Description Product Price HTML Template - template1.tpl <h1>$title</h1> <i>$desc</i> <b>$price</b>(USD) HTML: PHP Page <? list($title,$desc,$price) = file("Linktxtfile.txt"); $data = file_get_conents("template1.tpl"); $data = addslashes($data); #repeat this for each template either header / footer etc eval("\$display = \"$data\";"); print $data; ?> PHP: I hope you can adopt any of these methods. regards