Creating Dynamic Forms
by Bob Dombroski
The best way to save time and energy in managing a web site is to reuse pages and features. This can be as simple as using include files for sidebars and banner ads. In this article we will discuss the reuse of two pages to submit and process multiple transactions thru database driven html forms.The best way to save time and energy in managing a web site is to reuse pages and features.
Lets say you have the job of creating html forms for 1000 different transactions. Each transaction can have a different number of elements within its form. The page which processes the forms basically builds a string by combining each element within the form. The catch behind the problem is any transaction can change at any time and the boss wants an easy way to change each transaction.
Okay how to cover 1000 transactions with 2 pages? DATABASE DRIVEN! Here's how. This example is of a fictituous insurance companies intranet site. The transactions are all stored in a database. There is also a link to a working example which allows you to enter your own new transactions and see the forms which are generated.