Re: Forms with letter security
| From: | Manuel Lemos | Date: | Sat, 17 Jun 2006 06:16:08 +0000 |
| Subject: | Re: Forms with letter security | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42083@lists.php.net to get a copy of this message | ||
Hello,
on 06/17/2006 02:46 AM Ron Piggott (PHP) said the following:
> I have a set of graphical letters A to Z. I want some displayed and
> then keyed into a security field to verify a person is submitting the
> form. I have seen these used before on shopping carts.
>
> I know about creating salts to select which letters to choose.
>
> What I am wondering is if there is a way to join the letters together
> instead of having 6 different images displayed.
Usually that is done by generating dynamically a single image using the
GD extension.
You may want to take a look at this forms generation class to perform
that kind of validation. It generates an image with a random text and a
noise image to make the text a little fuzzy and harder to crack by robots.
Here is a screenshot of the text:
http://www.phpclasses.org/browse/file/8244.html
Take a look at the test_captcha_input.php example script to learn how
the class can simplify this task for you using this plug-in:
http://www.phpclasses.org/formsgeneration
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/