Thursday, 28 November 2024, 4:50:54 PMWelcome Guest
Registration | Login
RSS
Welcome To Hartnet!
Main Menu
Search
Login form
Calendar
«  November 2024  »
SuMoTuWeThFrSa
     12
3456789
10111213141516
17181920212223
24252627282930
Our poll
Rate this Website!
Total of answers: 11
Users online

Total online: 2
Guests: 2
Users: 0
Sender's name *:
Sender's e-mail *:
Web-site:
Message subject:
Message text *:
Site rating:
Security code *:

<%@ page import="net.tanesha.recaptcha.ReCaptcha" %> <%@ page import="net.tanesha.recaptcha.ReCaptchaFactory" %>
<% ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LdyIMkSAAAAAJk_wdNj0ElK11EwAAwTLV2dmClX", "6LdyIMkSAAAAAHqEVK0igzCKzC_ICJ2D2B1Krusf", false); out.print(c.createRecaptchaHtml(null, null)); %>
import net.tanesha.recaptcha.ReCaptchaImpl; import net.tanesha.recaptcha.ReCaptchaResponse; <%@ page import="net.tanesha.recaptcha.ReCaptchaImpl" %> <%@ page import="net.tanesha.recaptcha.ReCaptchaResponse" %> <% String remoteAddr = request.getRemoteAddr(); ReCaptchaImpl reCaptcha = new ReCaptchaImpl(); reCaptcha.setPrivateKey("6LdyIMkSAAAAAHqEVK0igzCKzC_ICJ2D2B1Krusf"); String challenge = request.getParameter("recaptcha_challenge_field"); String uresponse = request.getParameter("recaptcha_response_field"); ReCaptchaResponse reCaptchaResponse = reCaptcha.checkAnswer(remoteAddr, challenge, uresponse); if (reCaptchaResponse.isValid()) { out.print("Answer was entered correctly!"); } else { out.print("Answer is wrong"); } %>