I'm currently working on a modification of the apply_for_role module that basically hooks into the user registration form to allow a user to select a role to apply for of their own choosing.

While that works perfectly fine, I'm having problems with my own additions to this code, which is once a user selects a role of their choice (which is just a simple select box), new entries are dynamically created and rendered on screen for them to fill out, such as input fields for their company name, address, etc. That works great...although I can not figure out how to make that new information a user has typed in be submitted to my custom submit handler for it to be processed.

Does anyone have any thoughts/input for this? The #ahah code is tied into the select box inside of apply_for_role's hook_user (op being set to register) function.