Search code examples
delphidelphi-2010captcha

How to create a captcha verification in delphi 2010?


Exactly like what the title asks - i am wondering to now wether i can use a captcha verification into my signup form ( Using delphi 2010 )


Solution

  • Captcha it's just a graphic with some text on it. So, you can make an image, and output some text on it. If you need more info, then you need to describe more fully what it's about making a captcha that you don't understand.

    Perhaps you may keep a list of all the possible words in a database table, and pass the word's id number into your captcha function. This way you'll have a way of knowing if the user typed in the correct word and make supplementary checks if you want.

    Here you have how to draw a transparent text over an image:

    Writing Transparent Text on Image

    and there are a lot of examples on the internet.

    Or, you can use a component to do the work for you.