gpt4 book ai didi

php - Dreamweaver 中不显示 recaptcha

转载 作者:行者123 更新时间:2023-11-30 01:24:48 25 4
gpt4 key购买 nike

我在将 reCAPTCHA 集成到 Dreamweaver 项目时遇到了一个小问题。

我根本看不到这个小部件,也不明白为什么,我搜索了很多,但无法让它工作。

这是我的代码,位于 php 页面的开头:

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "Formulaire_Ajout_Compte")) {

// reCAPTCHA
require_once('inc/recaptchalib.php');
$privatekey = "MY_PRIVATE_KEY";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if (!$resp->is_valid) {
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {

// if reCAPTCHA is OK... the end of my code then SQL injections

在我的表格中,我有:

<?php
require_once('inc/recaptchalib.php');
$publickey = "MY_PUBLIC_KEY";
echo recaptcha_get_html($publickey);
?>

“lib”位于正确的位置,但我不明白为什么它根本不起作用。

最佳答案

我找到了答案...我在 MAMP 的日志中找到了它。权限问题,我将其更改为将其全部包含在文件和文件夹上我认为一切都很好。

关于php - Dreamweaver 中不显示 recaptcha,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18128915/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com