View Single Post
Old 18th November 2005, 11:01 PM   #5

Username: techitout
Rank: WF101 Newbie
Join Date: Mar 2005
Posts: 17
Points: 0.00
Default

A special Educational Needs teacher looked at this programme, saw its potential and asked for scoring facilities. This raises a few problems.

Can Cookie's be used to retain the scoring values for the length of the quiz?
Can you use Cookie's and Sessions together?
Can you read a Cookie then send new values back on the same page?
Where must they placed on the page, I have seen reference to Buffering Output.?
I have had a go at writting code without must success. The additional logic I am using is:-

On Answer page "timestabl2.php"

Obtain $score and $total values from a Cookie
I assume initial values will be zero
If corect answer add 1 to both $score and $total
If incorrect add 1 to $total
Return these new values the Cookies (time-out set to 30mins)

Pupil return back to the Main Page using link to open up a new page so generating new random numbers. Not Back Button.

On Main Page "timestable1.php"

Read Cookie for $score and $total
Score displayed as a percentage with number of attempts.
Possible display time left!

I would be greatful for any help, I cannot find any info on tutor web pages etc.

Tony Bell
techitout is offline   Reply With Quote