I am attempting to make a php/ajax integrated (essentially) survey software - although I have run into a road block
we have a question like
"did anyone in your party order a drink containing alcohol"
answer 1 / answer 2
this does not pose a problem -
the problem comes with the following question
"was that person ID'ed"
answer 1 / answer 2
I only want this question to be visible to people who answered with answer 1 to the previous question if they answered answer 2 I still want the question to answer answer 3.
one more problem is I need this to be available via a function call because all questions will be coming from a database and will vary from survey to survey
Code:
"<input type='radio' name='answer[]' value='".$answer."'>"
I am new to ajax/js but experienced in php among other languages - this is a big roadblock for me and I appreciate any assistance you can offer me