JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
contact: implement honeypot instead of visible robot field
[wfpl-cms.git] / contact.html
index 6f1e7ee..95d1412 100644 (file)
@@ -2,26 +2,19 @@
 
 <html lang="en">
 <head>
-       <title><!--~$title show {~-->Contact<!--~}~--></title>
+       <title></title>
 </head>
 
 <body>
 <!--~$body show {~-->
-
        <!--~form {~-->
-               <h2>Contact</h2>
-
                <form action="contact" method="post">
 
                        <div class="caption">Name</div>
                        <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>
@@ -31,7 +24,6 @@
 
                </form>
        <!--~}~-->
-
 <!--~}~-->
 </body>
 </html>