I need to develop a questionnaire module in an existing application. The requirement is when an user clicks on the questionnaire link in the application, the module should present question to the user and based on the answer from the user another set of related question should be presented to the user.
For example The question asked is "Are you married" Yes/No. If the answer is Yes, then the question to be asked is "How many kids?". If the answer for the first question is No, then the question How many kids? should not be asked.
I would greatly appreciate if any one gives me some tips to develop the module.
I plan to start the module with a parser which parses the answer from the user and then decides to pick appropriate question from the questionnaire table.