We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16532
    • 38 Posts
    dear all,


    I really want to add Captcha to my form (not eform) huh. Anyone know how to implement this? Please advise me wink.


    So thank you
    • Take a look at the eForm code, or the websignup.inc.php form code.

      From websignup.inc.php - the form
      <input type="text" name="formcode" class="inputBox" style="width:150px" size="20">
                    <a href="[+action+]"><img align="top" src="manager/includes/veriword.php?rand=<?php echo rand(); ?>" width="148" height="60" alt="If you have trouble reading the code, click on the code itself to generate a new random code." style="border: 1px solid #003399"></a>

      And the processing
          if($_SESSION['veriword']!=$formcode) {
              $output = webLoginAlert("Incorrect form code. Please enter the correct code displayed by the image.").$tpl;
              return;
          }
      
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 51737
        • 3 Posts
        How can I add captcha without using any code??