We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31961
    • 23 Posts
    Need some help trying to get these forms working if possible! Been having a nightmare trying to get Vericode to work and can’t seem to find a solution anywhere.

    The problem is:
    I keep on getting "Invalid verification code" when posting my form. The Captcha code I enter is always correct.

    eform Call
    [[eForm? &formid=`form_callmeback` &subject=`Website Call me back` &to=`[email protected]` &bcc=`[email protected]` &ccsender=`1` &tpl=`frm_callmeback` &report=`frm_callbeback_report` &thankyou=`frm_callmeback_thankyou` &vericode=`1`]]
    


    Form Template
                                    <!-- Form -->
    [+validationmessage+]
                                    <form id="form_callmeback" method="post" action="[~[*id*]~]">
                                    	<dl id="formdl">
                                        	<dt><label for="name">Name:</label></dt>
                                            <dd><input id="name" name="name" type="text" class="width" eform="Your Name::1"/></dd>
                                        	<dt><label for="company">Company:</label></dt>
                                            <dd><input id="company" name="company" type="text" class="width" eform="Company::1"/></dd>
                                        	<dt><label for="email">Email address:</label></dt>
                                            <dd><input id="email" name="email" type="text" class="width" eform="Email Address:email:1"/></dd>
                                        	<dt><label for="telephone">Telephone:</label></dt>
                                            <dd><input id="telephone" name="telephone" type="text" class="width" eform="Telephone::1"/></dd>
                                        	<dt><label for="callbacktime">Time to call back:</label></dt>
                                            <dd><input id="callbacktime" name="callbacktime" type="text" class="width" eform="Call me back::1"/></dd>
                                        	<dt><label for="spam"> </label></dt>
                                            <dd><img src="[+verimageurl+]" alt="verification code" style="float: left;"/></dd>
                                        	<dt><label for="vericode">Code</label></dt>
                                            <dd><input id="vericode" name="vericode" type="text" class="width" style="width: 100px; float: left; padding: 0px; margin: 0px;"/></dd>
                                        </dl>
                                        
                                        <p><input name="" type="image" src="assets/templates/fms_v1/images/buttons/but_requestcallback.gif" class="formbutton" /></p>
                                    </form>
                                    <!-- end Form -->
    


    What am I doing wrong?

    Any help much appreciated.

    Cheers,

    Warmbeat


      • 31961
      • 23 Posts
      Please - has any one got any suggestions?
        • 3749
        • 24,544 Posts
        If you see the code but your input is not accepted, it usually means one of two things. Either the $_SESSION variable that holds the CAPTCHA code is not persisting or the user’s input isn’t getting to the code that checks the validity of the input.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 31961
          • 23 Posts
          Hi BobRay,

          I see the code, type in the correct digits, but my input is not accepted.

          How to I go about implementing some of your suggestions?

          Thanks in advance.

          Warmbeat
            • 3749
            • 24,544 Posts
            I’m afraid they aren’t really suggestions, just guesses at what might be going wrong. I’m not that familiar with eForm. Hopefully someone who knows it better will chime in.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 31961
              • 23 Posts
              Thanks for your response BobRay.

              Anybody else want to chime in?
                • 19568
                • 11 Posts
                I believe the problem will be solved by adjusting the code in your snippet call.

                If you remove the &vericode=`1` tag in your snippet call, that should fix the problem
                  ModX. 'nuff said.
                  • 21395
                  • 91 Posts
                  I don’t think that turning off the verification code system can be construed as a solution.

                  My symptoms are identical: I can see the image, I can see the captcha code, but it never works. I can read and type.

                  I’ve tried clearing the cache etc.


                  No joy.

                  Nic Boyde

                  Config
                  MODx version 0.9.6.3
                  Version codename rev 4565
                  Database Version: 4.1.22-standard
                  PHP: 5.2.5
                  On a Linux platform.
                    MODX Revolution 2.6.5-pl (traditional)

                    Hosted on MODX Cloud

                    Skype: nicbaldeagle
                    • 3749
                    • 24,544 Posts
                    Just for diagnostic purposes, you might try installing SPForm and turning on its CAPTCHA to see if it works.
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 21395
                      • 91 Posts
                      I’ll give it a shot Bob.

                        MODX Revolution 2.6.5-pl (traditional)

                        Hosted on MODX Cloud

                        Skype: nicbaldeagle