Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    Contact page with captcha

    I am working on this site: http://oneclickelectronics.com and I need a contact form integrated with recaptcha or some kind of simple captcha service that would prevent spam to my email. I have some knowledge of PHP but am unfamiliar with integrating a captcha service into a contact form. I am open to all suggestions. I am not sure what captcha services are out there to choose from. But I am looking for a simple free alternative. I do not want to use a premade contact form because I want to learn how to do this. Thank you to all who help

  2. #2
    Senior Coder
    Join Date
    Apr 2010
    Thanked 110 Times in 109 Posts
    This is one of the many free ones that is recommended by many.

    Also you can easily create your own simple one, such as this

    PHP Code:
    if (isset($_POST['submit')) {
    $captcha $_POST['code'];

    if (
    $captcha != 20) {
    //Error Captcha is wrong


    What is 10 10?<br />
    input type="text" name="code" value=""><br />
    input type="submit" name="submit" value="Send Mail"
    It's extremely simple and once bots learn the value it won't be good, but it's suggested that you have multiple ones and use the random function to auto change them per refresh or visit, that way it goes through like 5 different choices,

    another idea would be to create a select box with like 20 options, and be like "What was the First President of the United States?" and have silly answers and the right one George Washington.

    So there is many ways of doing it, such as craigslist new way of entering the right code, and then copying the text into another box to prove your human.

    One more thing to mention if you have a max attempt of tries that would greatly help. Such as 3 or 5 tries and then you can't try again for like 15 minutes. It's annoying to some people, but it does help spam.
    Been a sign maker for 8 years. My business:
    American Made Signs

  3. #3
    Senior Coder
    Join Date
    Jul 2009
    South Yorkshire, England
    Thanked 304 Times in 303 Posts


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts