Jul 24th, 2009, 7:19 PM
Hmmm.. curious! I tested it out and actually's it's working fine for me. That's not to say there's isn't a bug, though.
What happens is that when the CAPTCHA is entered incorrectly, process.php starts sessions, stores your form values and the error message and then redirects you back to the form page. By the looks of it, this mechanism isn't working on your server.
But here's a simple test. After the $fields = ... line at the top of your form page, right before the closing ?> tags, add this line:
Then put through an invalid recaptcha. Do you just see Array( ) - or is it populated with content?
One other question: are you using the default PHP sessions, or database sessions? (if you haven't explicitly set it to use database sessions, it'll use PHP sessions).
- Ben
What happens is that when the CAPTCHA is entered incorrectly, process.php starts sessions, stores your form values and the error message and then redirects you back to the form page. By the looks of it, this mechanism isn't working on your server.
But here's a simple test. After the $fields = ... line at the top of your form page, right before the closing ?> tags, add this line:
PHP Code:
print_r($fields);
Then put through an invalid recaptcha. Do you just see Array( ) - or is it populated with content?
One other question: are you using the default PHP sessions, or database sessions? (if you haven't explicitly set it to use database sessions, it'll use PHP sessions).
- Ben