Re: Re: How give a 'timed' online quiz?

From: Date: Tue, 14 Aug 2001 11:37:22 +0000
Subject: Re: Re: How give a 'timed' online quiz?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-62613@lists.php.net to get a copy of this message
Hello, I did an timed online quiz using session variables for my timer. It work fine. When the user start the quiz, you check the time and calculate the duration of your quiz. exemple: 20:00 + 60 min = 21:00 So you register 2100 in a session variable Each subsequent request you make shure the current time is still below 2100 or you stop the quiz and tell user. py ----- Original Message ----- From: "Evan Nemerson" <evan@coeus-group.com> To: "Bryan "Cyngon" Helmkamp" <cyngon@remove.this.runbox.com>; <php-general@lists.php.net> Sent: Tuesday, August 14, 2001 1:16 AM Subject: Re: [PHP] Re: How give a 'timed' online quiz? > You can't do this and keep it tamper-proof with JavaScript/PHP. No matter > what, anyone with an IQ above that of a tree stump could play with the POST > variables. > > I think the only way to do this and keep it tamper proof would be a Java > applet. If memory serves, you can have record the time on the server, and > have each answer sent as it is answered. > > If you had a web site that posted forms to the server after every answer, the > transmission time would have a big effect. No, Java is the way to go. > > > On Monday 13 August 2001 19:18, you wrote: > > You could have PHP insert a hidden form value holding the start time in the > > form. Then compare the start time with the current time when they submit > > and handle as needed. You could somehow encrypt the start time to prevent > > tampering. > > > > -Bryan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#62613) next »