Copy link to clipboard
Copied
I have a little knowledge of html,
What I would like to know is there a book that I can be direct to learn enought css or what language needed to make a quzz that grade itself and shows the correct answer.
Thank you
Rick
Copy link to clipboard
Copied
Your best option would be to search the internet or youtube for 'write a quiz with php'. There should be plenty of results.
Don't use javascript (unless you use node.js, which can be executed on the server-side). There are a lot of quiz solutions that use javascript, which is executed on the client side, which means the anwsers to the questions can be found in the code if you look at code view in a browser.
Copy link to clipboard
Copied
Hi Rick,
if German language is not a problem for you (or by help of Google Translate), you could try this.
https://wiki.selfhtml.org/wiki/JavaScript/Tutorials/Spiele/Multiple-Choice-Quiz
There are some examples and at the end you will find
Das fertige Quiz
Das fertige Multiple-Choice-Quiz ausprobieren
QuelltextVorschau
what means something like:
The finished quiz
Try out the completed multiple choice quiz
Source code preview
Hans-Günter
Copy link to clipboard
Copied
A Google search for "online quiz scripts" should reveal plenty of solutions, both server-side and client-side. This one is built with Bootstrap and JavaScript. Although it's not 100% secure, most people will not find answers in the source code because I minified and obfuscated the script that contains them.
https://alt-web.com/DEMOS/Quiz/
Copy link to clipboard
Copied
Way too easy to get at the correct answers. For anything serious you should never use Javascript for quizes. Use Javascript if its just a bit of fun.
key: ['2', '1', '2', '2', '2', '2', '1', '1', '2', '3']
Copy link to clipboard
Copied
"Way too easy..."
And you're not most people 🙂
Copy link to clipboard
Copied
I'm not sure online quizzes are much use anyway, apart from a bit of fun. You only have to post in any forum 'Does anyone know the answers to these questions' or just Google the answers... pretty pointless, unless used in some kind of controlled environment.