Hi, I have a form where teachers can add questions to a test, the results of which go into a table (quizzes - sql attached).
Currently, when the user presses the "Add another question button", another 4 fields appear -> another question, answer, photo and document field.
Ie: Fields highlighted in green here:
[login to view URL]
When the user presses the "Remove question" button, these 4 fields then disappear.
This already works great.
TASK: I want another 2 fields added. So when the user presses the "Add another question" button, as well as another question, answer, photo and document field appearing, there should also be another:
i) pos_feedback
ii) neg_feedback.
See:
[login to view URL]
Data inserted into the pos_feedback and neg_feedback fields also needs to go into the quizzes table. Some of the work for this has been done on the processing page ( [login to view URL] )
NOTE: All the work for this task will be done on the two pages:
[login to view URL]
[login to view URL]
The quizzes table already has pos_feedback and neg_feedback fields ready to receive the data.
In a nutshell, the pos_feedback and neg_feedback fields operate pretty much the same way as the question and answer fields, with the exception that they are not mandatory fields like the question and answer fields are.
All relevant files attached.
php / mysql / javascript
Thanks,
Dave