dongliping003116 2014-12-11 01:09
浏览 117

联系表格7 + Google reCAPTCHA - 如何设置服务器端配置?

Thank you for reading my problem in advance. I am trying to incorporate Google's new reCAPTCHA (https://www.google.com/recaptcha/) into a Wordpress site that is using Contact Form 7. I have inserted the front-end code provided by Google:

<div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div>

However, I can't figure out how to get the server-side integration configured. From what I can tell, I need to insert this code into my contact form HTML (see https://code.google.com/p/recaptcha/wiki/HowToSetUpRecaptcha#Part_2:_Installation):

<?php
 require_once('recaptchalib.php');
 $publickey = "YOUR_PUBLIC_KEY"; // you got this from the signup page
 echo recaptcha_get_html($publickey);?>

When I do that on the Contact Form 7 backend, it just displays the text in between "< ?" and "? >". I'm also a little confused about the other steps and there are not many resources online about this new captcha.

Thanks again.

-Trent

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统