treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Adding an anti-spam feature to my WordPress widget form.

  • I am trying to add an extra field to my form that would help me combat spam. I have tried adding reCaptcha and I think I was missing the ever important feature of actually checking the code before sending the contact message through the email.

    Here is my current code: http://pastebin.com/D550jjvs

    I would rank my own PHP experience at about a 5 out of 10. I understand enough to navigate pages but when it comes to troubleshooting problems like this I get somewhat lost.

    I think I need to add something else for the server side, but I'm totally lost on this, and the API Docs for verificationaren't as clear to me as the ones were for what i've done so far.

  • For further clarification:

    What I have added so far is lines 372 - 382, the reCaptcha form. I believe I need to add something to the submit button, but I'm not entirely sure what, or what it is supposed to look like.

  • Any ideas ? :(