[Solar-talk] Image Captchas and RTE's
Paul M Jones
pmjones at solarphp.com
Thu Aug 3 08:14:40 PDT 2006
On Aug 3, 2006, at 10:06 AM, Rodrigo Moraes wrote:
> On 8/3/06, Clay Loveless wrote:
>> On Aug 3, 2006, at 7:23 AM, Rodrigo Moraes wrote:
>>
>>> - Image Captchas: integrate image captchas to the form helpers (a db
>>> table will be required);
>>
>> Hi Rodrigo,
>>
>> What would the table be used for?
>
> Clay, that's a good question. I would just reuse a implementation I
> currently have, which uses for a key to look for a valid solution in a
> database:
>
> <input name="captcha_key" type="hidden" value="ccb53...long hash...
> 5902" />
> <input type="text" name ="captcha_solution" value="" />
>
> When the form is submitted, that row in the "captcha" table is read to
> check if the solution matches. I haven't looked for other
> implementations; and now that you asked... perhaps only the hash would
> be enough?
Perhaps storing it in a session variable would be sufficient? That
might help to avoid a database hit.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list