I have a form on a site where spam is getting past the hidden field. I'm not sure what I'm doing wrong. The client (and I) don't want to use captcha, but the spam is still getting through.
I put a placeholder [[+workemail]] in the sendto email to see if the validation is working, but it is empty in the email that is sent, while all the other fields are spam filled.
Anybody see anything wrong here?
[[!FormIt?
&hooks=`spam,email,redirect,FormItAutoResponder`
&emailTpl=`emailsendto`
&fiarTpl=`emailcc`
&fiarToField=`email`
&fiarFrom=`xxxxxx`
&fiarFromName=`[[++site_name]]`
&fiarReplyTo=`xxxxxxx`
&emailReplyTo=`xxxxxxxx`
&fiar=`[[++site_name]]`
&fiarSubject=`Subject - Contact Form`
&emailTo=`xxxxxx`
&emailUseFieldForSubject=`1`
&redirectTo=`16`
&validate=`workemail:blank, firstname:required, lastname:required, email:email:required, text:required:stripTags`
&submitVar=`contactformsubmit`
]]
<div id="form_container">
<p>[[!+fi.error_message:notempty=`[[!+fi.error_message]]`]]</p>
<form class="form" action="[[~[[*id]]]]" method="post">
<input type="hidden" name="workemail" value="" />
<label for="firstname"> First Name: <span class="error">[[!+fi.error.firstname]]</span> </label>
<input id="firstname" type="text" name="firstname" value="[[!+fi.firstname]]" /> <br />
<label for="lastname"> Last Name: <span class="error">[[!+fi.error.lastname]]</span> </label>
<input id="lastname" type="text" name="lastname" value="[[!+fi.lastname]]" /> <br />
<label for="email"> Email: <span class="error">[[!+fi.error.email]]</span> </label>
<input id="email" type="text" name="email" value="[[!+fi.email]]" /> <br />
<label for="phone"> Phone: <span class="error">[[!+fi.error.phone]]</span> </label>
<input id="phone" type="text" name="phone" value="[[!+fi.phone]]" /> <br />
<label for="subject"> Subject: <span class="error">[[!+fi.error.subject]]</span> </label>
<input id="subject" type="text" name="subject" value="[[!+fi.subject]]" /> <br />
<label for="text"> Message: <span class="error">[[!+fi.error.text]]</span> </label>
<textarea id="text" name="text" rows="7" cols="77">[[!+fi.text]]</textarea>
<div class="form-buttons">
<input name="contactformsubmit" type="submit" value="Submit" />
</div>
</form>
</div><!--form_container-->