PHP Form Wizard 2.0
Fifht  Revision:  2001-04-28
Fourth Revision:  2001-04-12
Third Revision:  2001-03-10
First Revision:  2001-01-28
Initial Release: 2001-01-21
General Contributors and References
Author: narain2@yahoo.com Present author and integrator
Author: ak@living-source.com for PHP FormWizard 1.0
Author: ruderstaller@cwd.at for phpOpenFormGen 
Author: cdi@thewebmasters.net for Validation Classes
Numerous other authors on net for their ideas

Initial Release statements:
PHP Form Wizard 2.0 is under the GPL (See LICENSE for details!)

PHP Form Wizard 2.0 has been programmed for PHP 4.0 or above, faultless
operation under php 3.0.x cannot be guaranteed. It only works with
MySql at the present time.

Other requirements:
register_globals must be set to "ON" (php.ini)


Fifth  Revision changes:

The previous versions of the script took care of checkboxes and multiple select
cases by storing data in an array. Another relatively simpler approach is based
on binary numbers. An integer is stored in this case. This is probably an
efficient scheme for storing checkboxes and multiple-select cases. This is 
included as checkbox_int and nultiple_int. The nomenclature suffix _int is
only for storage reference. You can use  text as well as integers.

The program has been adapted to run on Windows/NT platform. Overwrite the
scripts in the main directroy to those from the windx directory. It has been
tested to work properly. There are nice tools for windows such as FoxServ, 
PhpTriad installers and dbTools database manager.


Fourth Revision changes:

The previous versions of the script did not take care of checkboxes and
multiple select capabilities properly. There are many ways these capabilities
can be included in the script. I have taken an Array storage approach which
simplifies the database creation dramatically. In this approach no new child
tables are required as the data is stored in the parent table. The same method
works for both the checkbox and multiple select cases. The storage location 
for such cases is varchar(64) type. Every checkbox takes about 16 characters.
You have to adjust this dimension depending on the number of your estimated
checkboxes. You may also use open ended varchar(16)[] array type declaration.


Third  Revision changes:

1. The Update problem has appraently been fixed.

2. The delete option requires confirmation with additinal form input.


Second Revision changes:

The following changes have been made to make this application more useful.

1. The generated form elements have been made completely independent of
   the generating codes for added portability.

2. The input data has been made dynamically persistent. It works for most
   input elements types except for multi-select and file types. Simply stated
   any radio, text, checkbox, textdata will show in current state both
   during the data insertion and navigation modes.

3. A grid form template has been introduced. Upto 5 rows of data can be 
   viewed, navigated and serached in this mode. This form is most suitable
   for display puproses. The number of rows displayed can be changed by
   editing main2.txt in the lib directory.

4. Unnecessary codes have been deleted from the package.

5. The script webapp.php generated  dynamically for the selected case.


First Revision changes:

The following changes have been made to make this application more useful.

1. The use? option was not programmed properly. This version makes this
   capability operational.
2. A new input type auto_inc&primary have been introduced to handle 
   auto increment columns.
3. A new null validation "None" has been introduced to give more flexibility
   to data validation. It simply does not do any validation.
4. The search capability used to produce a number of forms on the same
   screen when many matches were made. The new version produces one
   form at a time with navigation capability.


Known Bug:

I have tried to put a counter for form ID number at the bottom of the
form. This is hard wired with $id variable. If you use other primary
or auto incerement variable, please change the $pgid variable at the
bottom of the main tpl ( like demo.tpl for table demo) script.

Have fun!

P.S.: I have put a form generator for PostgreSql on Hotscript. If you are
interested in learning another  database, this is a good place to
start.

Jay P. Narain
narain2@yahoo.com
