title: Honeypot Captcha classic asp code?
body: <p>Good morning, I am trying and failing miserably to implement a captcha, mostly because I have no asp experience, could anyone assist?</p>
  
  <p>Multiple html pages have a contact form in footer, this has form validation in place and fires off an asp page which sends an email &amp; redirects to thanku.asp.</p>
  
  <p>I wanted to add the honeypot captcha, so added another field [body] and hid it using css. I then added the code below that to check its null. When I click submit the form is processed even when hidden field has content inside, can anyone spot where I am going wrong?</p>
  
  <pre><code>&lt;div id="captchafield"&gt;
  &lt;input type="text" name="body" value="" /&gt;
  &lt;/div&gt;
  
  &lt;script language=javascript&gt;
  
  if(!String.IsNullOrEmpty(Request.Form["body"]))
    IgnoreComment();
  
    &lt;/script&gt;
  </code></pre>