Created
October 12, 2017 05:00
-
-
Save virtuosomaster/5699233bde1367272e47fd9c8d9520a4 to your computer and use it in GitHub Desktop.
Simple custom form with google captcha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script type="text/javascript"> | |
function enableBtn(){ | |
document.getElementById("submit").disabled = false; | |
} | |
</script> | |
<form id="form" method="POST" action=""> | |
<input type="text" name="name" class="name" placeholder="Full Name" required="required"> | |
<div class="g-recaptcha" data-sitekey="my-google-site-key" data-callback="enableBtn"></div> | |
<input id="submit" type="submit" name="submit" value="Submit" disabled="disabled"> | |
</form> | |
<script src='https://www.google.com/recaptcha/api.js'></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment