Apologies for being too vague. I was looking for a starting point to learn from and trying to avoid being complicated.
The form output is being used as input to another system by a program (Aimsoft) that keys in for you. The system that it will key into has multiple screens with varying numbers of input fields.
Because of the quantity of screens involved I did not want to have a script per underlying screen but instead have each database row to be a profile of a screen so that depending upon the screen selected, a form is displayed with the correct fields allowing the data to be input, manipulated and then automatically re-keyed into the other system.
The underlying system is an old screen screen application without mouse movements etc so each field on it is a simple input box.
Ideally the profile will hold the number of inputs on the underlying screen together with input length, input type for validation (eg date) and input sequence.
I have assumed so far that the database will have 2 tables, 1 to described the underlying screen and the 2nd to described each input field.
I hope that makes sense.
Thanks again