I am running into an issue that makes me think there is a better way to do things. Basically, it's a booking system that has many options pending on what was selected in each form section.
How I'm doing it:
- Form has a dropdown, it has 3 entries the correspond to hidden divs
- An option is selected and jQuery unhides the corresponding div
- Now, a Second dropdown is visible with 5 entries populated by PHP
That's where I stop. The second drop-down should allow the user to select an option and then populate ANOTHER drop down.
But, it's getting to the point where I would have about 100 hidden divs with custom PHP calls to get the right data into them.
Is there a better way to do this?