|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Building a quiz with cf
Hi i am still in learning with coldfusion and building a website at the same time, However i need some advice. Is there any way i could make a quiz with coldfusion? for example a multichioice question with radio buttons, and maybe the correct answers in the database? Im really interested in submitting something like this but can anyone point me the direction to how?
I have made a flash quiz but am trying to avoid flash if i can purely because i know how to do it and want to try something similar in coldfusion. I am using COLDFUSION MX7 And microsoft access. Many thanks in advance |
|
#2
|
|||
|
|||
|
You need to do four things to accomplish what you want.
1. create two db tables; one with the questions and the other with the options available for the questions. The options must have a foreign key to their related question. a third table with the correct answer would also be beneficial. 2. create a paging interface (I have used forward and back links with replacable divs to accomplish this). doing this you would do a loop query to output each question / answers in a separate div then page through them. 3. create a times for each div (javascript would work well). 4. once the test is completed, have the user click on "Results" and test the form responses against the data table with the correct answers. I would suggest you also use javascript to disable all unselected radios when an answer is selected unless you allow users to change answers. This would also apply to the navigation if you allow them to go back and review. What you are wanting to do in a stateless (web) environment is not that difficult but you need a requirements doc and a definitative plan before starting. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > Building a quiz with cf |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|