ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Captcha setup for Email form

June 06, 2012 1:20pm

Subscribe [2]
  • #1 / Jun 06, 2012 1:20pm

    ehime

    6 posts

    Title pretty much says it, I have a Email form I’m using via a modal box but can’t figure
    out how to get a captcha working in it. No modules, etc where enabled (Are the modules
    etc needed? or is this built in?) Here’s the code:

    <footer class="over-line">
       <div class="wrap">
        <ul class="sm-arrow" id="one">
         <li><a href="http://{homepage}">Home</a></li>
         <li><a href="http://{path=">About</a></li>
         <li><a href="http://{path=">Products</a></li>
         <li><a href="http://{path=">News</a></li>
         <li><a href="http://{path=">Blog</a></li>
         <li><a href="http://{path=">Contact US</a></li>
        </ul>
        <ul class="sm-arrow" id="two">
         <li><a href="http://{path=">Press Room</a></li>
         <li><a href="http://{path=">Terms & Conditions</a></li>
         <li><a href="http://%%%%%%">%%%%%</a></li>
         <li> <!--for visual syle--></li>
         <li> <!--for visual syle--></li>
         <li> <!--for visual syle--></li>
        </ul>
        <ul class="social" id="three">
         <li><a href="http://twitter.com/id=follow-us">Follow Us</a></li>
         <li><a href="http://www.facebook.com/id=facebook">Facebook</a></li>
         <li><a href="http://www.youtube.com/user/id=youtube">Youtube</a></li>
        </ul>
        <ul class="social" id="four">
         <li><a href="#id=flickr">Flickr</a></li>
         <li><a href="http://{path=id=blog">Blog</a></li>
        </ul>
        <div class="clear"></div>
        <a href="http://{homepage}%22class=%22logo-foot" class="logo-foot ir">5G WiFi</a>
       </div><!--/wrap-->
       <div class="clear"></div>
      </footer>
    
      <div id="contact-form" class='hide'>
    
            <h2>Contact Us</h2>
    <p>        We want to hear from you.</p>
    
    <p>    {exp:email:contact_form user_recipients="no" recipients="%%%%%%" replyto="no" charset="utf-8" redirect="4" return="{homepage}|Return to the Site"}<br />
         <input type="hidden" id="subject" name="subject" size="60" value="Join Our Mailing List" /></p>
    
    <p>     <br />
           <label for="name">Name:</label><br />
           <input type="text" id="name" name="message[]" required /><br />
         </p>
    
    <p>     <br />
           <label for="organization">Organization:</label><br />
           <input type="text" id="organization" name="message[]" /><br />
         </p>
    
    <p>     <br />
           <label for="from">Email:</label><br />
           <input type="email" id="from" name="from" value="{member_email}" maxlength="35" pattern="[^@]+@[^@]+\\\\\\\\\\\\\\\\.[a-zA-Z]{2,6}" required /><br />
         </p>
    
    <p><br />
         <br />
           <label for="phone">Phone:</label><br />
           <input type="tel" id="phone" name="message[]" /><br />
         <br />
          <br />
         <br />
           <label for="message">Message:</label><br />
           <textarea id="message" class="textarea" name="message[]" required></textarea><br />
         </p>
    
    <p>     <input type="hidden" id="subject" name="subject" size="40" value="Broadcom 5G Inquery" /><br />
                <input name="submit" type='submit' value='Submit' /></p></p>
    
    <p>  <!--// Captcha stuff //--><br />
             {if captcha}<br />
            Please enter the word you see in the image below:<br />
            {captcha}<br />
     <input type="text" name="captcha" value="" maxlength="20" /></p><br />
       {/if}</p>
    
    <p>    {/exp:email:contact_form}</p>
    
    <p>  </div></p>
    
    <p> </div><!--/page--><br />
     <?php echo BukBuilder::script('app.js','jquery.js'); ?></p>
    
    <p></body>

  • #2 / Jun 06, 2012 1:42pm

    ehime

    6 posts

    I forgot to enable captcha in email settings, was the answer.

    I guess a better better question now is how to use a more complex
    captcha in the email field? Something along the lines of ReCaptcha?

  • #3 / Jun 06, 2012 1:45pm

    ehime

    6 posts

    Again answered my own question

    http://devot-ee.com/add-ons/recaptcha

    Please Close

  • #4 / Jun 07, 2012 1:04pm

    Shane Eckert

    7174 posts

    Hey ehime,

    Awesome. Nice work. Glad to see that you are back in business!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases