Categories


Menu Based Template

Raiting 1.00

Description

The program first reads the content of "feature.txt" in an array. It displays the content in a nice table and the name of the book becomes the link. When you click on the link to see the review the program calls itself back and passes the name of the review file in the variable "load" to the called program. When no review is called only the table is printed. Otherwise, the correct review file is included at the end of the table. You click on another book and the present review is replced with the new one. The beauty of the script is that it doesnt matter how many books are there and you can add or remove any number of them without bothering about their order of appearance etc. All you have to do is edit the "feature.txt" file and remove or add the record containing the book. You ofcourse have to add the review file to be included in case you add new books. It doesnt matter what you call the review files so long as they are correctly placed in the record in "feature.txt." and the program will find it for you. Great isn't it ? Thats the power of php and template driven programs. In fact its a very simple example. Templates can make building and maintaining large complex sites very simple. Also the user can concentrate on content building without bothering about changes in the program.

Information
Title: Menu Based Template
Author: admin00118
Price / Cost: Free
Last Updated: 2002-10-03
URL: Click to Visit
Web site Language: English
Total Votes: 4
Current Rating: 1.00
Total Hits #: 192
Listings ID #: 2616