Debugging recaptcha html form with python cgi

I have an html form with a recaptcha image that posts to a python cgi script. The form elements are captured (they print to the form) with the exception of the recaptcha challenge/response, which always appear empty on submit.

The form was working only a short time ago and I've made no changes to apache2 or to my LAN or firewall since then. I understand that I can insert an error parameter into the challenge/response api, but I can't find an example in google docs.

Let me know how to fix this thanks
reg-cgi.txt
reg-html.txt
sara_bellumAsked:
Who is Participating?
 
sara_bellumConnect With a Mentor Author Commented:
Fixed. The form action must precede the table definition on the html page that is imported (the same rule applies for other languages such as php).
0
 
sara_bellumAuthor Commented:
Just to make sure that you have all the info you may need, I also attach the config file that is imported into the above python cgi script. It's straightforward - the primary purpose is to illustrate how I've complied with google's guidance in using my reCaptcha account.
config-py.txt
0
 
sara_bellumAuthor Commented:
Of course I'd rate my own solution as excellent! This took a while but it works.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.