need some help thinking through how to approach this.
I have a dynamic form that allows the user to create questions. They can have one to many questions.
The questions can then in turn have one to many answers associated with them.
The UI is driven by jquery and is done. The field names post to the processing page like so:
Questions look like: Question1, Question2, Question3, etc.
Answers look like: Question1-Answer1, Question1-Answer2, Question2-Answer1, etc
I know I need to loop over the questions, insert, grab the new ID, and apply it to the answer to build the relationship between question and answer in my database.
As for how to technically approach this, my first guess is to build an array of questions with the second column of the array being an array of answers. I'd then just loop over the array.
Help? :) Thanks!