Skip to content

Instantly share code, notes, and snippets.

@webapprentice
Last active January 4, 2016 10:29
Show Gist options
  • Save webapprentice/8609306 to your computer and use it in GitHub Desktop.
Save webapprentice/8609306 to your computer and use it in GitHub Desktop.
<form action="/tutorial_45_demo_1" method="post">
<p>
Name: <input type="text" name="name" size="40">
</p>
<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=YOUR_RECAPTCHA_PUBLIC_KEY_GOES_HERE">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=YOUR_RECAPTCHA_PUBLIC_KEY_GOES_HERE"
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>
<br>
<input type="submit" value="Submit">
</form>
<hr>
<% unless @recaptcha_response.nil? %>
<p>Response from reCaptcha:</p>
<pre><%= @recaptcha_response.body %></pre>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment