reCAPTCHA

Using reCAPTCHA service (free registration required - high protection)



DTML-Code-Snippet

<dtml-if "REQUEST.form.has_key('recaptcha_response_field')">
  <dtml-if "captcha_isValid(this())[0]">
    <p style="color:green;font-weight:bold;">CORRECT</p>
  <dtml-else>
    <p style="color:red;font-weight:bold;">FALSE</p>
    <dtml-var "captcha_isValid(this())[1]">
  </dtml-if>
</dtml-if>
<form action="<dtml-var "getParentNode().absolute_url()">" method="POST">
  <dtml-var "captcha_getContent(this())">
  <input type="submit" value=" submit " />
</form>