View Full Version : Counting Wrong from Right

01-15-2004, 05:23 AM
i have a multiple choice quiz and the way i did it was i asked the question and then had radio buttons next to the choices and if they clicked the right one the background goes green but if they click the wrong one the background goes red. theres only 10 questions and i wanted to know how i can make it so that it tallys up how much they got wrong or right..I'll attach it in a zip file since its several pages (1 for every question) If anyone has any suggestions..i would appreaciate it...thx in advance

01-15-2004, 05:29 AM
If the user would know at once if his answer is correct or not as he chooses the answer, then all users would have a perfect score!

01-15-2004, 05:34 AM
yeah...im on the honor system where if they get it wrong they'll just click next and if they get it right they click next...they just get one pick right or wrong then have to click next

01-15-2004, 05:53 AM
How do you ensure that the user pick only once and click next? They can pick until they get the correct answer and then click next, can't they?

01-15-2004, 06:07 AM
yeah they can...but im just going to use it to show some one so i will be the one clicking it..so i will be only choosing one and then clicking next

01-15-2004, 06:47 AM
You need to pass data from one page to another using javascript. And there are several ways (http://www.webxpertz.net/faqs/jsfaq/passvars.php) to do it.