Quiz Create a 5 question quiz about a topic of your choice A

Quiz

Create a 5 question quiz about a topic of your choice. Ask for the user’s name (use an input field) and use drop downs, checkboxes, and radio buttons for the quiz. You must use each of those three form element types at least once.

Your assignment should have three total pages: The quiz page, the results page, and a history page.

The quiz page will display the 5 questions for the quiz (use an HTML form).

The results page will display the results of the quiz – which questions were correct/incorrect and the user’s score. This page will also save the results to a text file. You should save the username, their answers to each question, their overall score, and a timestamp of when the quiz was taken.

The history page will display all of the past results by reading the saved results text file.

You do not need to do any form validation for this assignment. If a question is left blank, count it as wrong. For the name field, use HTML required attribute to ensure the user inputs something.

**You can use PHP**

Solution

For the question page we can use

<STRONG>Question 1</STRONG>: 2 is an even number?
<INPUT TYPE=\"radio\" NAME=\"q1\" VALUE=\"y\">Yes
<INPUT TYPE=\"radio\" NAME=\"q1\" VALUE=\"n\">No

For entering your name or typing answer we can use:

<INPUT TYPE=TEXT SIZE=40 NAME=User VALUE=\"name\">

Quiz Create a 5 question quiz about a topic of your choice. Ask for the user’s name (use an input field) and use drop downs, checkboxes, and radio buttons for t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site