in reply to Trouble with hidden data (need options)

Surely for this you only need the graphic "word", and a unique key which will identify it in a database?

Say your word in the graphic is "asdfgh". You create a sufficiently random string, "645jd834nf7gn36fg0jd53vbd8" as the key and set the entry in the databse for that key to "asdfgh".

When they submit the form, you can pass the key in your hidden field, and if $database{'645jd834nf7gn36fg0jd53vbd8'} == 'asdfgh' then they've guessed correctly. You move on to the next step and delete the entry in the db.

Or have I missed something?



($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
  • Comment on Re: Trouble with hidden data (need options)

Replies are listed 'Best First'.
Re^2: Trouble with hidden data (need options)
by sulfericacid (Deacon) on Sep 25, 2004 at 04:50 UTC
    Wow, Cody... That thought never crossed my mind. I guess the problem with that is, if they don't guess the right key it'll sit in the database. It'd have to be setup to delete keys over a certain age which would be a hassle but definately possible.

    Thanks for the idea!



    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid
      Delete the key even if the guess fails.