I have a registration form that requires different information based on a combobox selection. My thought was to resubmit the form with some special identifier when the combobox changes, then read this identifier with PHP and re-display the form with the proper fields.
I have the combobox onchange event firing to a js function, which is currently submitting normally (I can't tell the difference between this submit and a normal user submit). I'm kinda stuck here. I guess I have the following questions:
1. Can I submit the form with some unique variable
2. How can I read this variable in PHP after the submit to know that I need to process it differently?
Am I on the right track? Any help will be greatly appreciated.