0
Welcome Guest! Login
0 items Join Now

Grav + Gantry Contact Form Validation Sum

    • Fahmy's Avatar
    • Fahmy
    • Newbie
    • Posts: 10
    • Thanks: 0

    Grav + Gantry Contact Form Validation Sum

    Posted 3 months 3 weeks ago
    • Hi

      I'm using the Grav + Gantry + Helium + Admin combination.
      Also, some people I work with complain about recaptcha being too hard.
      So I'm trying to implement a php math problem.

      I'm not much of a php and I'm terrible at MD, but something like below.
      <?php
          $num1 = rand(1, 9);
          $num2 = rand(1, 9);
          $sum = $num1 + $num2;
          $_SESSION['sum'] = $sum;
          ?><Label for="question">What is <?php echo $num1 . ' + ' . $num2 . '?';
      if (isset($errors['answer'])) {?> <span class="error"><?php echo $errors['answer'];?></span><?php }?></label><br>
          <input type="text" name="answer" id="answer"></input>

      Is there a template with such a thing for me to learn from. Please Help!

      thanks
      Fahmy
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 19503
    • Thanks: 2286
    • Web Developer
    • Fahmy's Avatar
    • Fahmy
    • Newbie
    • Posts: 10
    • Thanks: 0

    Re: Grav + Gantry Contact Form Validation Sum

    Posted 3 months 3 weeks ago
    • Thanks

      Doesnt seem to work.

      I have also tried this:
       <script src="//www.powr.io/powr.js?external-type=html"></script> <div class="powr-form-builder" id="15ae320e_1519283097"></div> 

      The code is provided for Html Sites by POWR a Cloud Based Service. It would solve current and future Form related issues.
      However, this doesnt seem to work in the custom HTML particle.

      I'm missing something, somewhere.

      -Fahmy
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 19503
    • Thanks: 2286
    • Web Developer

    Re: Grav + Gantry Contact Form Validation Sum

    Posted 3 months 3 weeks ago

Time to create page: 0.063 seconds