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?
<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?