reCAPTCHA not working on my contact form due to tables?

970 views
Skip to first unread message

aarongmoore

unread,
Sep 20, 2010, 3:58:35 AM9/20/10
to reCAPTCHA
I am using reCAPTCHA in the contact form on my website and need some
help getting it to work. I am not a web programming expert and have
reached a point where I can't seem to solve the current problem.

Basically, the use of tables to build the layout of my form is causing
some sort of error with the reCaptcha. As a result I keep getting
"reCaptcha filled out incorrectly" errors when it isn't actually
filled out wrong. If I simply remove all table code, the form works.

I want the layout to have the Name/E-Mail/Subject to the left of the
Message entry box. I tried the same layout with div floats but the
reCaptcha still didn't work.

Please view the design and source code at the below link:
http://aarongmoore.com/three/contact.html

If someone can help me solve this mystery, I would really appreciate
the help.

Spectrum-Nashville.com

unread,
Sep 20, 2010, 5:30:49 PM9/20/10
to reCAPTCHA
Is there some reason you're sure the tables are the problem?

The only time I've seen any issues with tables relative to reCAPTCHA
was when the form tag was inside a table.

And that only misbehaved under FireFox (it worked fine with IE and
Chrome).

I'm not saying that tables are definitely not your problem, but I'd
check the code in the validation area more closely before I jumped to
that conclusion.

Spectrum-Nashville.com

unread,
Sep 20, 2010, 5:33:51 PM9/20/10
to reCAPTCHA
Let me follow up briefly to say I did read your post as saying "If I
simply remove all table code, the form works".

But I also read "I tried the same layout with div floats but the
reCaptcha still didn't work".

That says to me the tables aren't your problem, and I'd be very
surprised if the layout was the problem. The problem is more likely a
stray } or { or other similar script-language syntactic error.

P JH

unread,
Sep 20, 2010, 5:39:05 PM9/20/10
to reca...@googlegroups.com


On Mon, Sep 20, 2010 at 8:58 AM, aarongmoore <frankwil...@gmail.com> wrote:
Basically, the use of tables to build the layout of my form is causing
some sort of error with the reCaptcha.

Just on the offchance, is http://wiki.recaptcha.net/index.php/Overview#It.27s_Not_Working.21_Help.21 relevant?:

Check if your form is inside a table. In order for reCAPTCHA to process properly, the form needs to enclose the table and not vice versa.
Correct order: <form> <table> CONTENT </table> </form>


--
PJH


aarongmoore

unread,
Sep 20, 2010, 7:01:59 PM9/20/10
to reCAPTCHA
Thanks for your response P JH but I had already looked into that
possibility. The form code is placed outside of the table code.

i-imagine

unread,
Sep 21, 2010, 9:00:35 PM9/21/10
to reCAPTCHA
If you are certain that you have your keys correctly set via the
example scripts then you really need to clean up some of your html.

Check your form / pages here:
http://validator.w3.org/

Try fixing some of the errors and seeing what happens. The page has a
"broken" look to it anyway.

You could also try the AJAX version of reCaptcha, it seems to be more
forgiving.....

tom wible

unread,
Sep 22, 2010, 7:52:19 AM9/22/10
to reca...@googlegroups.com

On Sep 21, 2010, at 9:00 PM, i-imagine wrote:

> If you are certain that you have your keys correctly set via the

that was the problem, thanx

Reply all
Reply to author
Forward
0 new messages