0

I wanted to add a captcha box to this form. The past developer added this form as html within the content editor.. how can i integrate the captcha to this form? I'm relatively new to drupal and work in wordpress but i am not sure how i can integrate the drupal captcha feature to this form.

    <form action="#" method="post">
        <p>Name:
            <input id="Name" type="text" name="Name" />
        </p>
        <p>Email:
            <input id="Email" type="text" name="Email" />
        </p>
        <p>Phone:
            <input id="Phone" type="text" name="Phone" />
        </p>
        <p class="antispam">Leave this empty:
            <input type="text" name="url" />
        </p>
        <p>How Can We Help?
            <br />
            <textarea id="Message" name="Message" rows="4" cols="30"></textarea>
        </p>

        <div class="home-submit-link">
            <input id="submit" type="submit" name="submit" value="Submit" />
        </div>
    </form>

closed as off-topic by Mołot, Krishna Mohan, AjitS, Letharion, kiamlaluno Nov 18 '14 at 13:46

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on programming, PHP, SQL, etc. that do not relate directly to Drupal are off-topic here, but can be asked on Stack Overflow." – Mołot, Krishna Mohan, AjitS, Letharion, kiamlaluno
If this question can be reworded to fit the rules in the help center, please edit the question.

2

I'd say you have two obvious choices :

  • either you reimplement the form using the drupal webform module and then add some captcha module like recaptcha,

  • or you keep going the tought html-only route and just see how you can integrate a captcha library within your "html within the content editor" form...

I'd say the first strategy is wiser. Particularly since your form is fairly straighforward.

  • thanks... just thought there was a way of integrating it into html – breezy Nov 13 '14 at 16:52
  • There probably is. It's just that it'll certainly be thougher to integrate a captcha library rather than a ready to use drupal module... But then the choice is yours. – rtome Nov 13 '14 at 16:57
  • But having a play with the webform module is certainly worth a go. – rtome Nov 13 '14 at 16:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.