JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
contact: implement honeypot instead of visible robot field
[wfpl-cms.git] / contact.html
index 227a19c..95d1412 100644 (file)
                        <div class="field"><input type="text" name="name" value="~name attr~"></div>
 
                        <div class="caption">Email</div>
-                       <div class="field"><input type="email" name="email" value="~email attr~"></div>
-
-                       <div class="caption">Robot Barrier (Required)</div>
-                       <div class="field_notes">Enter (below) the number between ~robot_minus_one~ and ~robot_plus_one~</div>
-                       <div class="field"><input type="text" name="robot" value="~robot attr~"></div>
+                       <div class="field"><input type="hidden" name="fields" value="~robot_field attr~~email_field attr~"><input type="email" name="~robot_field attr~" value=""><input type="email" name="~email_field attr~" value="~email attr~"><script>document.write('<style>input[name="'+document.getElementsByName('fields')[0].value.substr(0, 16)+'"]{display:none}</style>')</script></div>
 
                        <div class="caption">Message</div>
                        <div class="field"><textarea style="box-sizing: border-box; width: 100%; height: 220px" name="comments">~comments html~</textarea></div>