Preventing Blank Inquiries
I am using the following little script to make sure people fill in the required fields in an inquiry form:
<script language=Javascript type="text/javascript">
function validate() {
if (document.infoform.name.value == "") {
alert("Please fill in your name.");
return false;
}
if (document.infoform.email.value == "") {
alert("Please fill in your email address.");
return false;
}
return true;
}
</script>
It seems to work when I test it; nevertheless, a lot of blank inquiries still get through. I am wondering if this could be bots somehow messing with it, or people who have javascript turned off. Is there a better way to prevent blank entries? I don't want to discourage people from making inquiries by making them jump through too many hoops.
Thanks for your help. erin :)