Thank you so much for your patience. This was a lot of work and I had other obligations that I could not reschedule. I worked as hard as I could to get this done quickly and accurately.
You can download the project here:
Obviously, this all needs to be run on a server (WAMP/XAMPP or actual web server).
The game works a little differently now based on the requirements. The requirements state that the user should be able to select the game and play it. When the finish the first round, they can select to continue on to the second round or not. So that is how it works.
When you go to the game, you need to click on the question that you want to answer. When you do so, you will see the text "Enter Answer".
When you start typing, "Enter Answer" will disappear and be replaced by your text.
To submit your answer, you must press enter. When you press enter, one of two things will happen:
1.) If your answer is correct, it will turn the block green and the score will be updated. I did the color things because the requirement include a visual indication that the question has been answered.
2.) If your answer is incorrect, the question will turn red and the score stays the same.
Once all questions have been submitted, the game will ask you if you want to continue to the second round. If you confirm, then the second round is loaded and your score is retained. Notice that in the second round, the scores are doubled (hence, double jeopardy).
If you select not to continue the game, you are given your final score and then taken back to the menu. If you finish the second round, you are given your final score and then you are taken to the menu.
If you click on the reset button at any time, you are taken back to the menu.
The Help page is very basic. According to the instructions, there wasn't much to be done there. I think it was just so your instructor knows how the game is supposed to work. And I did add those instructions.
For the submit form (add a question), you are supposed to do SOMETHING with the submitted form. So the something I did was use mail to send a message. If you look at lines 32 and 33 of the submit.php file, you will see the email addresses being used.
You can change those to your school email address if you wish. The point is to generate a message, which it is doing. Obviously, sending an email message requires an SMTP server. So if you are testing on your local computer, it will not send an email message.
However, you can still test the email. Go here
and download the test mail server tool. Once you download it, install it. Once it is installed, run it. You can run it in the background. The point is to have it running. You shouldn't need to change any settings.
What this will do is watch for an attempt to contact port 25 on your computer (php attempting to send an email). It will grab the email message and open it up in your default email client (i.e., Outlook).
That way, you can see the actual email message exactly as it would be in the real world without having a true SMTP server installed on your computer.
You will also see that the form itself does go through validation. If you just attempt to submit, you will get HTML5 errors for the text inputs. If you fill out the text inputs but do not select a game/round/category, you will receive error message for those. The form will not submit until you have everything filled out.
So that meets all of the requirements and the game is fully functional. Thank you again for being so patient and letting me assist you with this. Let me know if you have any questions. I'm here to help.
Please remember to rate my answer. Thank you so much!