Hi all, I appreciate that there is information on the web about this but I'm getting confused by the complexity of the PHP scripts (mine are usually simple as below). I'm just looking for a bit of javascript that will prevent a form from being sent if a bot fills in the hidden 'validate' field. Any help is really appreciated as I'm getting a lot of spam at the moment, which I'm told a hidden field will prevent? Thanks guys

<form name="test" action="process.php" method="post">
<input name="validate" type="hidden" />
<input name="name" type="text" />
<input name="email" type="text" />
<textarea name="message" cols="" rows=""></textarea>
<input name="submit" type="submit" value="Submit">


$emailSubject = 'Message From Website';
$webMaster = 'xxx@xxx.com';

$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$body = <<<EOD

Customer Name: $name <br><br>
Email Address: $email <br><br>
Message: $message

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);