|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Q & A web site
I would like to build a question and answer web site, maybe about 150 questions total. Each question has it's own page with 4 answers to choose from. Questions are answered by clicking inside the radio button next to each answer. While all this is going on, I want to have the answers recorded somewhere and at the completion of the questions, a total percentage is given of the correct answers. All the incorrect questions and answers can then be recalled with the correct answers. No printing allowed, no copy and paste, no scroll bar, no typical browser look. Can anyone give me a hint as to how to accomplish the scoring and recall aspect of this project?
|
|
#2
|
||||
|
||||
|
RE: Q & A web site
I recommend using two arrays stored as session variables: one to hold the info for questions not yet asked and the other to store info for questions already submitted. That way you only have to initialize everything once. Just have the page submit to itself, store what was submitted, pop the next question from the unasked-array, and display. When the unasked-array is empty, figure out the score and display it.
|
|
#3
|
|||
|
|||
|
RE: Q & A web site
Maybe there is a forum that I should get involved in first, before I set finger in this one. Although I am very appreciative of any help- and believe I have found a site full of knowledgeable people, I have a hard time understanding terms used and slang in this arena. All comments welcome.
|
|
#4
|
|||
|
|||
|
RE: Q & A web site
Well, for this site do you have access to mysql? if so then store the q's/a's in a table like below:
id question answer1 answer2 answer3 answer4 Then, to check use an array to store the users replys, then check it against the database afetr selecting the information. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Q & A web site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|