Please help. I am going mad tryin to stop this 50 email spams a day.
So this is my code below.
Here is the check field snippet
<?php
function checkField(&$fields,&$vMsg,&$rMsg) {
if(!empty($fields['Last__Name'])) {
return false;
} else {
return true;
}
}
Here is my websiteform chunk
<form method="post" action="[~[*id*]~]" id="EmailForm" name="EmailForm" class="quick_analysis_form">
<span class="error">[+validationmessage+]</span>
<input name="formid" type="hidden" value="websiteform" />
<p><label for="cfName">Name</label><input name="name" id="cfName" type="text" eform="Name:string:1:" /> </p>
<input type="name" name="Last__Name" id="LastName" size=30 autocomplete="off" eform="LastName::0" />
<p><label for="cfEmail">Email</label><input name="email" id="cfEmail" type="text" eform="Email:email:1" /></p>
<p><label for="cfPhone">Phone</label><input name="phone" id="cfPhone" type="text" eform="Phone:string:1:" /></p>
<p><label for="cfDomain">Domain</label><input name="domain" id="cfDomain" type="text" eform="Domain:string:1:" /></p
<p><label for="cfMessage">Message</label><textarea name="message" id="cfMessage"></textarea></p>
<p><label>Anti-spam code:</label><input type="text" name="vericode" size="40" /></p>
<p><label> </label> <img src="[+verimageurl+]" alt="verification code" /></p>
<p><input type="submit" name="contact" id="cfContact" value="submit" class="btn" /></p>
</form>
Here is the call...
<h1>Get a Free Web Design Quote Today!</h1>
Fill out the form below and we will be in touch soon
[!getServer!]
[!checkfield!]
[!eForm?
&formid=`websiteform`
&vericode=`1`
&to=`[email protected]`
&tpl=`websiteform`
&report=`WebsiteFormReport`
&thankyou=`WebsiteFormThanks`
&subject=`Open Source CMS Quote/Purchase Request`
&gotoid=`46`
!]