是否可以将 googles reCaptcha 与 formpree 一起使用?

编程入门 行业动态 更新时间:2024-10-10 10:27:34
本文介绍了是否可以将 googles reCaptcha 与 formpree 一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我发现 formspree.io/ 非常好且易于使用,因为我可以将我的表单编辑为就像我喜欢的那样,无需接触一行 php 即可处理它.

这是我的表格.

<div class="行统一"><div class="6u 12u$(large) 6u(medium) 12u$(xsmall)"><label for="namn">Namn</label><input type="text" name="namn" id="namn" required/>

<div class="6u$ 12u$(large) 6u$(medium) 12u$(xsmall)"><label for="epost">Epost</label><input type="email" name="_replyto" id="epost" required/>

<div class="12u$"><label for="meddelande">Meddelande</label><textarea name="meddelande" id="meddelande" rows="5" required></textarea>

<div class="6u 12u$(large) 6u(medium) 12u$(xsmall)"><input type="checkbox" id="prenumerera" name="prenumerera"><label for="prenumerera">Prenumerera på mitt nyhetsbrev</label>

<div class="6u 12u$(large) 6u(medium) 12u$(xsmall)"><div class="g-recaptcha" data-sitekey="public_site_key"></div>

<input type="hidden" name="_next" value="<?php echo $ROOT; ?>./tack.php"/><input type="hidden" name="_subject" value="Kontakt!"/><input type="text" name="_gotcha" style="display:none"/><div class="12u$"><ul class="actions"><li><input type="submit" value="Skicka" class="special"/></li><li><input type="reset" value="Rensa"/></li>

</表单>

那么.. 当我不必通过 php 处理表单时,如何验证来自 reCaptcha 的输入?

谢谢!

解决方案

Formspree 现在在完成提交之前将所有表单提交重定向到 reCaptcha 页面.所以没有必要再使用 _gotcha 除非您为 Gold 级别付费并且不想要 reCaptcha 功能.

有关更多信息,请参阅 formspree.io/

I find formspree.io/ really good and easy to use since I can edit my form as much as I like without having to touch a single line of php to process it.

Here´s my form.

<form action="//formspree.io/my@email.here" method="POST"> <div class="row uniform"> <div class="6u 12u$(large) 6u(medium) 12u$(xsmall)"> <label for="namn">Namn</label> <input type="text" name="namn" id="namn" required/> </div> <div class="6u$ 12u$(large) 6u$(medium) 12u$(xsmall)"> <label for="epost">Epost</label> <input type="email" name="_replyto" id="epost" required/> </div> <div class="12u$"> <label for="meddelande">Meddelande</label> <textarea name="meddelande" id="meddelande" rows="5" required></textarea> </div> <div class="6u 12u$(large) 6u(medium) 12u$(xsmall)"> <input type="checkbox" id="prenumerera" name="prenumerera"> <label for="prenumerera">Prenumerera på mitt nyhetsbrev</label> </div> <div class="6u 12u$(large) 6u(medium) 12u$(xsmall)"> <div class="g-recaptcha" data-sitekey="public_site_key"></div> </div> <input type="hidden" name="_next" value="<?php echo $ROOT; ?>./tack.php" /> <input type="hidden" name="_subject" value="Kontakt!" /> <input type="text" name="_gotcha" style="display:none" /> <div class="12u$"> <ul class="actions"> <li><input type="submit" value="Skicka" class="special" /></li> <li><input type="reset" value="Rensa" /></li> </ul> </div> </div> </form>

So.. How can I verify the input from reCaptcha when I don't have to process the form through php?

Thank you!

解决方案

Formspree now redirects all form submissions to a reCaptcha page before finishing the submission. So there's no need to use the _gotcha anymore unless you pay for Gold level and don't want the reCaptcha functionality.

For more see formspree.io/

更多推荐

是否可以将 googles reCaptcha 与 formpree 一起使用?

本文发布于:2023-11-17 10:35:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609756.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:googles   reCaptcha   formpree

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!