Solved

Debugging recaptcha html form with python cgi

Posted on 2013-02-06
3
602 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:sara_bellum
  • 3
3 Comments
 

Author Comment

by:sara_bellum
ID: 38862873
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
 

Accepted Solution

by:
sara_bellum earned 0 total points
ID: 38964339
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
 

Author Closing Comment

by:sara_bellum
ID: 38964344
Of course I'd rate my own solution as excellent! This took a while but it works.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Strings in Python are the set of characters that, once defined, cannot be changed by any other method like replace. Even if we use the replace method it still does not modify the original string that we use, but just copies the string and then modif…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to count occurrences of each item in an array.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now