Verifying the User's Answer from reCAPTCHA in Progress Webspeed

Potish

Member
I have a webspeed application for which I need to add the capability for users to add comments. To avoid spam I am trying to implement the use of reCAPTCHA (www.google.com/recaptcha) to have users enter text that is verified before the comments are saved to the database. So far I have been able to add the code to display the reCAPTCHA on the webpage and the code looks as below


<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=[key-ommitted]">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=[key-ommitted]"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>

The next step is to verify the users input and through a POST request. I am having trouble determining how to get 3 pieces
of information needed for the POST request through webspeed.

1.) The remote IP address of the client submitting the request
2.) The value of "recaptcha_challenge_field" which is a textarea in the code section above
3.) The value of "recaptcha_response_field" which is a input on the code section above

For items #2 and #3 I tried to use get-value in webspeed but they keep returning blank values.

Any suggestions on how I can capture these items using webspeed?
 
Thank you for the suggestion. REMOTE_ADDR looks to be working but get-field("fieldname") is still not providing the values I need to capture to return in order to process the request. I am getting the same results with get-field("fieldname") as I did with get-value("fieldname"). Any suggestions on what else I can try?
 
Then I suggest you look at your <FORM> </FORM> tags as it doesn't sound like the fields are being posted. Are they definitely around the <TEXTAREA> and <INPUT> fields? Do you have more than one form maybe?

If you change the form to a GET request do you see the fields on the url?

Lee
 
Back
Top