Click to See Complete Forum and Search --> : Quiz help


96turnerri
09-11-2003, 08:50 AM
hi im want to make a quiz for my site, but i dont where to get started, i have seen a couple of ways to do it but i dont like these as they are very limited, each question pops up in an alert box and its horrible

What i want is all the questions on one page say 10 q's and then click a button e.g. submit ansers and a page comes up telling yo what ones you got right and the ansers for the wrong ones

If anyone could give me some pointers or a site to look at or any help at all that would be gr8.

pyro
09-11-2003, 09:05 AM
What you are going to need to do is create a PHP script that will check the users input (see $_GET (http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.get) or $_POST (http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.post)) and then compair it with the answers to see if they answered the questions correctly. If you need me to, I could show you a quick example... You might also want to look around http://www.hotscripts.com/PHP/Scripts_and_Programs/Tests_and_Quizzes/index.html for pre-built solutions...

96turnerri
09-11-2003, 09:34 AM
THANKS! PYRO i am looking at what you poste right now ill let you know how i get on probably be in a few hours cos i got work soon :(

pyro
09-11-2003, 09:37 AM
Ok, no problem... Just post back to this thread if you have further questions once you get going... :)

96turnerri
09-13-2003, 10:40 AM
i couldnt find no prebuilt solutions on the url u gave me, dont suppose you know any other sites that might have some, or where they would be on that one?

pyro
09-13-2003, 10:46 AM
You could try looking on http://php.resourceindex.com