Howdy folks,

I'm wondering if anyone has a suggestion for a program that will essentially build a questionnaire for me, but one that is customizable so that the questions asked are dependent on the answers given.

Example:
Question 1: what is your favorite animal?
a. Cat
b. Dog (we'll pretend this is the answer selected)
c. Parrot
d. Monkey

Question 2: What is your favorite breed of dog?
Etc.

Ideally it would be PHP/MySQL based so that I can also use the various combinations of answers to create a dynamic response at the end of the questionnaire ("Thanks, and good luck finding that perfect black lab/terrier cross next time you travel to London") along with all the typical statistical uses. Though really, beggars can't be choosers.

I know that I could build this from the ground up myself, but really why re-invent the wheel if I can devote that time to developing the actual content of the site instead?

Thanks a lot in advance for any suggestions.