Answer the question
In order to leave comments, you need to log in
Are there tutorials or sample code on how to implement such a test?
Hello. Who can tell how it is implemented - such a test ? I have a task at the university: to develop a test. Each multiple-choice question is displayed in turn. And the page is not updated, only questions with answers are updated. This, as I understand it, is implemented in AJAX.
So far I have created a database and there are two tables in it: questions and answers. In the first field id | question. In the second field id | answer | parent_question | true_question. But since I'm not strong in php and database, I can display the table on the screen and that's it. Tell me how can this be done? To alternately display one question with answer options.
Answer the question
In order to leave comments, you need to log in
This, as I understand it, is implemented in AJAX.
I think it can be done even easier. If the problem is with php.
https://yandex.ru/search/?text=%20jquery%20step&lr...
And there are a lot of ready-made options))
You display all your questions, and display them step by step to the user.
When the questions are all passed, you check whether all the fields are filled in and send it to the server.
Simply and easily. It's easier if you don't do it one by one)))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question