Thursday, 30 January 2025, 1:00:00 PMWelcome Guest
Registration | Login
RSS
Welcome To Hartnet!
Main Menu
Search
Login form
Calendar
«  January 2025  »
SuMoTuWeThFrSa
   1234
567891011
12131415161718
19202122232425
262728293031
Our poll
Rate this Website!
Total of answers: 11
Users online

Total online: 1
Guests: 1
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"); } %>