How should we design a psychological testing program? I recently learned php object-oriented development. I am a beginner. don't laugh. I want to develop a psychological test interface. the type of psychological test question is jump-type. As follows:
1. are you in a very good health condition and are you able to withstand intense exercise or overwork?
? Yes ?? 2
? No ?? 4
2. can you handle conflicts with others in your team without affecting your work efficiency?
? Yes ?? 5
? No ?? 3
......
23. Is your interpersonal relationship good?
? Yes ?? A
? No ?? B
24. will you make an attractive but risky investment?
? Yes ?? C
? No ?? D
How to design a program in this way?
Reply to discussion (solution)
Js judges p show or hide.
Upstairs
Use js to obtain user results and determine the problem to be displayed for the next question
Assign a weight to each question in the form.
Assign a weight to each question in the form.
Can I give a specific example? Thank you!
You can add conditions for an option. for example, if you select 1, you only need to perform 24, 25, without, then you can use js to control whether to display, 23, or 24, 25.
For example, if the p value of #1 is used, or an id is directly added to a row in the table, the getElementById can also be used.