Contact form with a honeypot

A hidden field that bots fill but people never see.

HTML · Contact form with a honeypotAdvanced
<form action="/contact" method="post">
  <input type="hidden" name="csrf" value="TOKEN_FROM_SERVER">

  <label for="c-name">Name</label>
  <input id="c-name" name="name" type="text" required maxlength="80" autocomplete="name">

  <label for="c-msg">Message</label>
  <textarea id="c-msg" name="message" required maxlength="2000" rows="6"></textarea>

  <div style="position:absolute;left:-9999px" aria-hidden="true">
    <label for="c-web">Leave this empty</label>
    <input id="c-web" name="website" type="text" tabindex="-1" autocomplete="off">
  </div>

  <button type="submit">Send</button>
</form>
formspamhoneypotcsrf