|
Posted by Pedro Graca on 11/10/06 19:17
["Followup-To:" header set to comp.lang.php.]
Matthew Wilson wrote:
> Hi, we are getting a lot of spam through our PHP Feedback form, and have set
> up a new field 'prove you're human', asking them to do some simple maths.
>
> What is the command for the PHP script itself, to say "this field must be
> equal to 9 or return the error page"?
if ($_POST['human_proof'] != 9) {
// spammer
} else {
// ok
}
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Navigation:
[Reply to this message]
|