DMXzone reCAPTCHA Support Product Page
  Not a problem 
 DMXzone reCAPTCHA not working on my page
 Reported  02 Sep 2012  12:15:45 
  2 
      have  this problem  
  02 Sep 2012  12:15:45 Gerry Martinez posted: 
 I purchased the DMXzone reCAPTCHA but after more than a month I still cannot get the extension to work on my page:foresightconsultancy.com/contact.php
I have tried a myriad of options!
Please help, thanks!!
Replies
 Replied 03 Sep 2012  06:20:13 
   03 Sep 2012  06:20:13 Teodor Kuduschiev replied: 
  Hello,
You do not have any form with a name and id on your page. Please make sure to build the contact form within <form></form> tags. Also please make sure you have downloaded the latest version of the reCAPTCHA
  You do not have any form with a name and id on your page. Please make sure to build the contact form within <form></form> tags. Also please make sure you have downloaded the latest version of the reCAPTCHA
 Replied 03 Sep 2012  08:12:36 
   03 Sep 2012  08:12:36 Gerry Martinez replied: 
  Thanks for your email. I have done what you suggested but I am still getting these problems:
1/ When I complete the recaptcha and submit the form, I get the following error message:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/o/r/fore2861/html/contact.php:117) in /home/content/f/o/r/fore2861/html/contact.php on line 171
Thank You, your email has been sent.
2/ The form still gets delivered even when I do not fill out the recaptcha details.
Thanks
Gerry
  1/ When I complete the recaptcha and submit the form, I get the following error message:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/o/r/fore2861/html/contact.php:117) in /home/content/f/o/r/fore2861/html/contact.php on line 171
Thank You, your email has been sent.
2/ The form still gets delivered even when I do not fill out the recaptcha details.
Thanks
Gerry
 Replied 03 Sep 2012  08:56:42 
   03 Sep 2012  08:56:42 Teodor Kuduschiev replied: 
  Please send me the contact.php page to 
 in order for me to review you code. 
   Replied 03 Sep 2012  10:13:52 
   03 Sep 2012  10:13:52 Teodor Kuduschiev replied: 
  Hello,
The following lines of code should be before all of the code on your page:
Also with the latest version of reCAPTCHA you do no longer need to add this in your code:
You can just add the redirect page into the reCAPTCHA UI.
 
  The following lines of code should be before all of the code on your page:
<?php require_once('ScriptLibrary/dmxReCAPTCHA.php'); ?>
<?php
// DMXzone reCAPTCHA 1.1.0
$theCAPTCHA = new dmxReCAPTCHA();
$theCAPTCHA->formName = "contact_form";
$theCAPTCHA->privateKey = "***Edited***";
$theCAPTCHA->publicKey = "***Edited***";
$theCAPTCHA->redirectURL = "";
$theCAPTCHA->Construct();
?>Also with the latest version of reCAPTCHA you do no longer need to add this in your code:
<?php if($_SERVER['REQUEST_METHOD'] == "POST") { // if form is submitted
  if (!isset($mm_abort_edit) || !$mm_abort_edit) { // and validation is fine
    $GoTo = "thankyou.html";  // redirect to a new page
    if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
      $GoTo .= (strpos($GoTo, '?')) ? "&" : "?";
      $GoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
    }
    header(sprintf("Location: %s", $GoTo));
  }
} ?>You can just add the redirect page into the reCAPTCHA UI.
 Replied 03 Sep 2012  17:12:00 
   03 Sep 2012  17:12:00 Gerry Martinez replied: 
  Thankyou so much!! 
Finally it works
Thankyou for being so prompt in getting back to me. I really have appreciated it.
  Finally it works
Thankyou for being so prompt in getting back to me. I really have appreciated it.
