I have this code in my contact form:
$bots = $_POST['bots'];
if ($bots == '')
fatal_error($txt['contact_bot_error'], false);
What I want to do is, make it so that it does the opposite. If the input isn’t empty, return error.
I made it do that there is a question “What is 1 + 1?” and input field for it, with “display:none” styled to it. So only bots should see it. So if they put anything in it, I want it to return an error.
Thanks.
Couldn’t you use
isset?