<? // Anti-spam code to prevent bots signing up on common PHP based boards
// without the server load of re-writing a gif
// You may need to change some variable names
if ((($number + $othernumber) != $sum)) {
echo "<font color=red>Please learn basic maths!!</font><br>"; $send = "no";
// Add the form data variable names you want to deliberately forget
unset($sender_email);
unset($sender_name);
unset($sender_phone); // End variables
} $number = rand(1,10); $othernumber = rand(1,9)*10; //End anti-spam code ?>
?>
//Anti-spam code in form
$form_block .= " <input type="hidden" name="number" value="$number"> <tr><td>
To prove you are not a bot, please complete the sum $number + $othernumber =
<input type="hidden" name="othernumber" value="$othernumber"><input type="text" name="sum" size=3 maxlength=3>";
//End of anti-spam form additions
?>
|
|