Adding Captcha To A Form?

Discussion in 'Programming' started by lokielookies, Oct 7, 2008.

  1. #1
    I'd like to add Captcha to a feedback form, but can't seem to figure out how to do it.
    I've searched the web and there are many site that say they show you how to do it, but somehow I always get stuck... :rolleyes:

    It would be great if someone could help me out.

    <form method="post" action="process.php">
      <table width="87%">
         <tr>
              <td width="23%"><span class="style4">Name:</span></td>
              <td width="77%"><input name="name" type="text" size="30" maxlength="50"></td>
         </tr>
    	 <tr>
           <td><span class="style4">Email:</span></td>
           <td><input name="email" type="text" size="30" maxlength="250"></td>
    	   </tr>
    	 <tr>
              <td><span class="style4">URL:</span></td>
              <td><input name="url" type="text" size="30" maxlength="150"></td>
         </tr>
         <tr>
           <td colspan="2"></td>
           </tr>
         <tr>
           <td colspan="2"><span class="style4">Testimonial:</span></td>
           </tr>
         <tr>
              <td>:</td>
              <td><textarea rows="7" cols="30" name="testimonial"></textarea></td>
         </tr>
         <tr>
              <td></td>
              <td><input type="submit" value="Submit"></td>
         </tr>
    </table>
    </form>
    Code (markup):

    ;)
     
    lokielookies, Oct 7, 2008 IP
  2. techcone

    techcone Banned

    Messages:
    206
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    techcone, Oct 7, 2008 IP
  3. gzav

    gzav Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did that work for you, or do you need more help?

    Here is an alternative: drupal.org/project/captcha
     
    gzav, Oct 7, 2008 IP
  4. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #4
    I am using the reCaptcha WordPress plugin, easy as 1-2-3 to install and configure. Deters the bots and spammers, nice. I use reCaptcha for non-WordPress sites too with excellent results.
     
    Social.Network, Oct 8, 2008 IP
  5. techcone

    techcone Banned

    Messages:
    206
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yup recaptcha is today's solution. :)
     
    techcone, Oct 8, 2008 IP
  6. nirajkum

    nirajkum Active Member

    Messages:
    815
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #6
    recaptcha is nice way to implement .... you can also write your own code in php to implement captcha
     
    nirajkum, Oct 8, 2008 IP
  7. lokielookies

    lokielookies Well-Known Member

    Messages:
    1,246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    150
    #7
    recaptcha works with domain licenses, I need something 'universal'
     
    lokielookies, Oct 8, 2008 IP