Click here to Skip to main content
15,878,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I need help to implement the answer Google Recaptcha 2.0.

I've tried a few ways to recover the response after sending the form but not consigui get the answer True.

Follows the example I'm trying:

XML
<html>
<head>
     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
</head>
<body>
    <form action="teste.asp" method="POST">
      <div class="g-recaptcha" data-sitekey="6LeDCAgTAAAAAAq4tf6729Tb7WlJivOQrazBgTBs"></div>
      <br/>
      <input type="submit" value="Submit">
    </form>
</body>
</html>


teste.asp:

VB
<%
        Dim recaptcha_secret, sendstring, objXML
        recaptcha_secret = "6LeDCAgTAAAAAAq4tf6729Tb7WlJivOQrazBgTBs"

        sendstring = "https://www.google.com/recaptcha/api/siteverify?secret=" & recaptcha_secret & "&response=" & Request.form("g-recaptcha-response")

        Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
        objXML.Open "GET", sendstring, False

        objXML.Send

        Response.write "<h3>Response: " & objXML.responseText & "</h3>"

        Set objXML = Nothing
%>


How do I implement a way to check that Recaptcha were marked?

Thanks for yout attention!
Posted
Updated 27-Mar-16 9:39am
v2
Comments
Afzaal Ahmad Zeeshan 15-Jun-15 15:15pm    
Just asking, Classic ASP, Google Recaptcha 2, and language being Visual Basic. You are hardly going to find any solution. Perhaps, you would (at the end) have to write your own solution. Most of the developers (counting me on top) don't even have the idea of how Classic ASP is written, and then Visual Basic is another factor. I wonder if Google supports the API after all of the changes being made in web technologies. Sorry!

1 solution

I could never get any of the Google Captcha's to work. I finally found this site and it was a snap to implement.
Classic ASP (VBScript) and ASP.NET (VB.NET) Security Image (CAPTCHA) Generator[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900