in reply to Trouble with hidden data (need options)
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trouble with hidden data (need options)
by sulfericacid (Deacon) on Sep 25, 2004 at 04:50 UTC | |
by BUU (Prior) on Sep 25, 2004 at 08:21 UTC |