Re: Online Quizz
| From: | Joe Stump | Date: | Wed, 15 Nov 2000 22:56:26 +0000 |
| Subject: | Re: Online Quizz | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25539@lists.php.net to get a copy of this message | ||
I set a cookie with the ID's of the links people have clicked on for my link
redirector (http://www.miester.org/software) and then if the person has already
clicked on that link I know and don't register another hit - same concept.
So the cookie would look like this:
$cookie = '45/22/132/56/4/3';
then you do this:
$already_asked = explode('/',$cookie);
if(!in_array($questionID,$already_asked)){
// ask question
}else{
// you idiot you can't cheat!
}
Or you could keep track of it in a DB if the person is required to be logged
in to take the quiz.
--Joe
On Wed, Nov 15, 2000 at 05:32:10PM -0500, Bravo, David CORP, MTC" wrote:
> I'm writing the code for an application to answer Quizzes online.
> It's based on the extras-phpPoll
> I think I'm finishing...
> I need the people can't back to the question once they answered.
> Please help...
> My promise is to post the source code once it's finished...
> thank you
>
> --
> 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
================================================================================
= Joe Stump joestump98@yahoo.com http://www.miester.org =
================================================================================
"Real programmers don't comment their code.
It was hard to write, it should be hard to understand."