Here is my current file and the one included with the ajax FAQ mod
class.faq_request.php.zip
Here is my current file and the one included with the ajax FAQ mod
class.faq_request.php.zip
Ok try the following, edit your file and add:
below line:PHP Code:if ($error == true) {
echo json_encode(array('status' => 'error', 'message' => 'Please confirm you are not a robot'));
exit();
}
should look like:PHP Code:if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && $error==false) {
PHP Code:if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && $error==false) {
if ($error == true) {
echo json_encode(array('status' => 'error', 'message' => 'Please confirm you are not a robot'));
exit();
}
So this did NOT work:
It is checking if $error == true after it has already confirmed $error == false.PHP Code:if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && $error==false) {
if ($error == true) {
echo json_encode(array('status' => 'error', 'message' => 'Please confirm you are not a robot'));
exit();
}
But this did work!
Thanks for getting me headed in the right direction.PHP Code://bof google recaptcha check
if ($error == true) {
echo json_encode(array('status' => 'error', 'message' => 'Please confirm you are not a robot.'));
exit();
}
//eof google recaptcha check
if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && $error==false) {
Ok great!
Hello,
I don't know if I am at the right place here but i haven's seen a "start thread" option. Here's
my problem.
reCAPTCHA is n't working all the time i haven't seen it on the new account page and not
always on the contact us page. i checked the files they are all there in the right place, checked
google key's they are also in the right file?
So what can be wrong in my situation ? (check itparts.biz/zentest)