<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> function fnsubmit() { var response = grecaptcha.getResponse(); if (response.length == 0) alert('captcha') } </script> <script src="https://www.google.com/recaptcha/api.js" async defer></script> </head> <body> <form action="" method="post"> <label for="name">Name:</label> <input name="name" required><br /> <label for="email">Email:</label> <input name="email" type="email" required><br /> <div class="g-recaptcha" data-sitekey="TU API KEY AQUI"></div> </form> <input type="submit" value="Submit" onclick="fnsubmit()" /> </body> <html>
jueves, 12 de octubre de 2017
Integrar Google " No CAPTCHA reCAPTCHA " en tu Sitio Web
Suscribirse a:
Comentarios (Atom)
