Re: [PHP] Online Quizz From: Joe Stump (joe <email protected>)
Date: 11/15/00

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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
================================================================================
= Joe Stump joestump98 <email protected> http://www.miester.org =
================================================================================
            "Real programmers don't comment their code.
             It was hard to write, it should be hard to understand."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>