Help In Generating An Online Quiz

Discussion in 'PHP' started by cmillett0, May 13, 2007.

  1. #1
    I need assistance in generating an online quiz via PHP, HTML, and possibly JavaScript. I want to generate 10 sets of math problems with random numbers. I have successfully used the rand() function with lower and upper limits to generate the question valuess. For each problem, I want the user to see a refreshed screen with the problem and then enter the answer for that problem. I have successfully set up an HTML <form> to accepted the answer.

    However, I am having difficulty saving the 10 sets of values for the geneated numbers and the user's 10 inputted answers. I initially set up the PHP module to issue a <form> with method="post". When I viewed the values of the variables, I only saw the value entered in the current form. The previously generated and input values were lost.

    After all 10 problems have been asked and answered, I want to display all 10 problems with the user's corresponding answers (to summarize what was asked and the matching reply). So how can I retain all values as I go back and forth between question and answer (with a screen refresh each time)?
     
    cmillett0, May 13, 2007 IP
  2. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    How many times you will ask the same question. Moderator please delete the post. This is the same topic cmillett0 posted before.
     
    Subikar, May 13, 2007 IP