I'm pretty new to PHP (I'm more partial to Ruby), but the website at my company has an email form that customers can fill out to order samples. I'm getting spam from it mostly from @yahoo domains. Is there a snippet of code that I can insert in my formmailer.php file that can prevent people from Yahoo from submitting something into the form?
Thanks for any suggestions in advanced!!
Update:
<form action="formmailer.php" method="post" id="contact" style="margin-bottom: 0;" onsubmit="return math_check()">
and for the script in used
<script type="text/javascript">
function math_check(){
var nr = document.getElementById("math_check").value;
if (nr != 7) {return false;}
else {return true;}
}
</script>
I do have to go and do some research on this so I have a better plan in the future. Thanks for all your help.