CAPTCHA for Contact Form

Posted on 2008-11-11
Last Modified: 2012-05-05

I have a couple of forms and am receiving a number of spam submissions, and thus thought of installing a captcha.  Can someone tell me how to add a captcha to my forms, to limit the number of spam submissions?

Ideally the captcha would be free, with few/no advertisements.

Question by:alleon
    LVL 16

    Accepted Solution

    Hello alleon,

    I personally use Securimage at
    Free and easy to install.


    LVL 36

    Assisted Solution

    by:Loganathan Natarajan
    LVL 8

    Assisted Solution

    If you want a solution, difficult for any OCR (automized program to read the captcha value) use animated captcha. It is quite imposible for any spammer to detect captcha by using OCRs.
    LVL 4

    Expert Comment

    Hi, I've been using
    You need to download the files, in the same directory as your registration script.
    It's simple to use:

    							<img id="captcha" src="./securimage/securimage_show.php" alt="CAPTCHA Image" />
    								<a href="#" onclick="document.getElementById('captcha').src = './securimage/securimage_show.php?sid=' + Math.random(); return false">Another image</a>
    <input type="text" name="captcha_code" size="10" maxlength="6" />

    Open in new window

    LVL 8

    Expert Comment

    LVL 2

    Author Comment

    Hi I want would like to use PHP Captcha (

    Can someone tell me how can I link the things (including both audio and images + having my own text phrases) to my form?

    I am using HTML not PHP..
    LVL 2

    Author Comment

    I mean, can someone tell me how should I add this CAPTCHA to my form?  I would like to go for the full version, including sound and my own text phrases.

    Thanks for everyone :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now