I keep a list of questions and the related side of the answer server. When creating HTML for a question form, I add a randomly selected question to the form and save the index of the question (from the list of questions) in a user session. Then, when the response is sent, I can simply check the response with the index from the session.
It is worth considering that:
- questions should be easy, should be
- unambiguous and has only one
- Possible answer The user can enter an answer in any case.
It's also worth having "why are we asking about this?" a bit in shape, as some users may be a little confused as to why the question exists.
source share