To turn this into a CGI, you have to maintain state between hits. I suggest a server-side database, although an appropriately encrypted hidden field with the right answer and number of guesses so far would also work.
I wrote an article about how to make online quizzes "cheat-proof". Check it out.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Guess the number
by merlyn
in thread Guess the number
by chip_creep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |