I need to create a dynamic form, this form should fit in one page, the answer for some questions should change the number of secondary questions, for example:
- How many dogs you have?
3
Name of the first dog:__
Name of the second dog:
Name of the third dog:____
Of course that if user skips or write zero, no secondary question should appear in order to keep a clean form.
I've made some research and it seems like a thing that should be made in JavaScript or AJAX but I'm not sure if its necessary or if there is another way to do it in PHP or which is the best way....
HELP!!!