I am trying to implement a quiz. The user has the selection of timing the quiz or not.
The timing of the quiz works like this: after n minutes(I set it myself), the
results are displayed even though the user hasn\'t finished answering all the questions. The user
does not have the chance to click on the Submit button if user hasn\'t finished the quiz because it will direct automatically
from the quiz page to the result page.
However, if the user didn\'t click on the button for \'set time for the quiz\', the user will have to click on submit button to get the results.
The redirect on time (set time constraint on the quiz) is done in Javascript while
the quiz is in HTML. The processing of the answers are in PHP.
The problems are:
If the user had selected to set timing for the quiz, the answers are NOT passed on
to the PHP part because the user didn\'t click Submit. How do I fix this?
Some of the answers are in checkboxes. Say for Q[1]: which of there are odd numbers?
the available options are:
<input type=checkbox name=Q[1] value=3>3
<input type=checkbox name=Q[1] value=5>5
<input type=checkbox name=Q[1] value=2>2
Obviously there are several answers here. How do I pass these answers that the user has
selected to PHP part?
Another question is: If there are many scripts that have some (not all) of the same chunk of
Javascript codes, how do I link the scripts to the Javascriptcodes.js without error?
A.html needs to check user\'s birthdate (whether valid or not) and email add.
B.html needs to check user\'s birthdate and user id.
When I link to the Javascriptcodes.js by <script src=\"Javascriptcodes.js\"> , errors for
user id occur in A.html and email add for B.html.
If I put only the part of codes that both HTML shares in Javascriptcodes.js, it doesn\'t work.
I am using Omni that supports the latest PHP, in Windows 98.