Hello, I have set up a form but when I fill it in it says the captcha math question is wrong. I have checked everthing but I can't find my problem.
The strange thing that I get the error but It still sends a email.
http://klappenvanjepa.co.nf/
<?php
$num_one = rand() % 10;
$num_two = rand() & 10;
$final_num = $num_one + $num_two;
$_SESSION['answer'] = $final_num;
echo $num_one . ' + ' . $num_two . ' = ';
?>
<input type="text" name="answer" /> <br />
<input type="submit" name="send_message" value="Send!">
$user_answer = $_POST['answer'];
$real_answer = $_SESSION['answer'];
if(empty($naam) OR empty($email) OR empty($email)) {
echo "Your forget somthing.";
} elseif($user_answer != $real_answer) {
echo "Can't send because the question is wrong.";
Can someone please help me with this problem.
Thanks