DMXzone reCAPTCHA Support Product Page
reCaptcha not sending
Asked 17 Dec 2011 14:45:52
1
has this question
17 Dec 2011 14:45:52 Bruce Symons posted:
Have set the recaptcha in a php form and all goes well when sent however the message is not actually being sent - I must be missing something. Here is the link to the contact form www.guidedpath.com.au/contact.phpI have changed the dmxReCAPTCHA.php file by adding at the end the following code at line 123 to have my "thankyou" page returned as recommended by a previous post by you guys and it works fine. Just need to get the form sent.
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));
}
}
I hope you can help
Regards
Bruce
Replies
Replied 19 Dec 2011 08:57:26
19 Dec 2011 08:57:26 Teodor Kuduschiev replied:
Hello Bruce,
Please try moving this code on the page that contains the captcha.
Please try moving this code on the page that contains the captcha.
Replied 20 Dec 2011 13:40:21
20 Dec 2011 13:40:21 Bruce Symons replied:
Hi,
Thanks for the reply.
Where abouts in the page do you want me to put it?
Thanks for the reply.
Where abouts in the page do you want me to put it?