Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

•Re: Guess the number

by merlyn (Sage)
on Dec 22, 2003 at 17:39 UTC ( #316426=note: print w/ replies, xml ) Need Help??


in reply to Guess the number

This looks suspiciously like an answer for an exercise in my Learning Perl. {grin} Good job.

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.


Comment on •Re: Guess the number

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://316426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-09-24 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls