Is it possible to creare a counting function for html pages? -


I am making a quiz with several html pages (question 1, question 2, etc.), in which every 4 options radio With a button, a check can be done what I want to do is such a function, if you have chosen the correct answer, then 1 point adds to the counter, but if you check the wrong answer, then take 0.25 points . Finally, I have a question that will be with the final grade of the quiz, this will be the sum of points for each question. Any thoughts or suggestions?

Use JavaScript or PHP to create a variable and add or subtract each page. Then show it on the last page. Most of the HTML books cover this topic, try to borrow some books about Javascript, as HTML is not a dynamic language.

You can use the Post method or the GAT method to send the number to php and javascript on the next page.

W3school.com HTML php provides free and detailed tutorials about Javascript and a lot more languages.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -