...but will it work? It's so simple I'm embarrassed to post it, but here's what I did.
Here's a contact page
here.
The visitor picks a random four digit number ($randnum).
A few fields later, they are asked to add seven to it ($haha).
The script pops an alert and exits if $haha doesn't equal $randnum + seven:
PHP Code:
if ($haha != ($randnum + 7))
{
echo "
<script type='text/javascript'>
alert('WRONG ANSWER! USE THE BACK BUTTON TO TRY AGAIN.');
</script>
";
exit;
}
This is placed before the mail processing section.
I mean, seriously, could something this stupid actually work?
Best,
Richard