DMXzone reCAPTCHA Support Product Page
Solved
The recaptcha is bypassed when sending form
Reported 02 Feb 2012 00:10:42
2
have this problem
02 Feb 2012 00:10:42 Phil Boyle posted:
I've just used recaptcha for the first time on an online contact form here www.mvholidays.co.nz/recaptcha_test.php and it doesn't work. The scripts that send the form seem to bypass the recaptcha.Do you have any ideas on how I can fix this.
Thanks
Phil
Replies
Replied 02 Feb 2012 07:57:20
02 Feb 2012 07:57:20 Teodor Kuduschiev replied:
Replied 02 Feb 2012 20:14:10
02 Feb 2012 20:14:10 Phil Boyle replied:
Brilliant. Thanks Teodor.
Replied 08 Feb 2012 11:13:17
08 Feb 2012 11:13:17 Francesco Andreani replied:
Sorry all, I've seen this is a comon issue and I see also the FAQ. My form use Kollection3 form by Interakt and points to itself by a function. please see this code:
Even if the code is or is not valid the form is submitted.
I also removed he funcition and written this:
the page is www.borgodispello.it/pages/photogallery.php
Can You help me please or must I change the entire page?
Thank's a lot.
<form method="post" id="form2" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>"> // this is the function: /** * Return the URL of the page in which the script is called and the query string if exists. * @return string return the URL (ex. http://server.com/dir/papa.php?mod=return ); */ function KT_getFullUri() { $ret = KT_getUri(); if (strpos($_SERVER['REQUEST_URI'], '?') !== false) { $pos = strpos($_SERVER['REQUEST_URI'], '?'); $query_string = substr($_SERVER['REQUEST_URI'], $pos); if (trim($query_string) != '') { $ret = $ret . $query_string; } } return $ret; }
Even if the code is or is not valid the form is submitted.
I also removed he funcition and written this:
<form method="post" id="form2" action="photogallery.php">
the page is www.borgodispello.it/pages/photogallery.php
Can You help me please or must I change the entire page?
Thank's a lot.