是否可以将 googles reCaptcha 与 formpree 一起使用? [英] Is it possible to use googles reCaptcha with formspree?

查看:52
本文介绍了是否可以将 googles reCaptcha 与 formpree 一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现 https://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 功能.

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

I find https://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 https://formspree.io/

这篇关于是否可以将 googles reCaptcha 与 formpree 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
PHP最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆