Hi Peakbagger, welcome to the forums,
In school or out, we could all stand to learn a few things
If I understand you correctly, you have an initial form containing "common to all" selects, that when once chosen will lead to specific "not common to all" choices.
So maybe something like this:
Initial page populates the select with the "common" values taken from the database.
Form sends input values to server.
Server finds applicable "specific" values and sends back a second form using those values.
Form sends those input values to the server.
Server sends back the final page.
You may be interested in using the QuickForm2 package as it would save you from a lot of work.
This package provides methods to create, validate and render HTML forms.
* Supports all form elements defined by HTML standard, provides several
* Server-side and client-side validation, several common rules provided
* Multipage forms (tabbed forms and wizards)
* Pluggable elements, rules, renderers and renderer plugins
Major advantages over PHP4 version:
* Most of the package's functionality is covered by unit tests
* DOM-like API for building the form structure, new streamlined API for
elements' values handling
* Default rendering without tables (inspired by
* Renderer plugins for elements with complex rendering needs
* Ability to chain validation rules with 'and' and 'or'
* Client-side validation can run "live" on changing the form fields,
validation errors are displayed near the fields instead of in alert()