php - I need help adding a simple math captcha to my contact form for a website -
i want add simple math captcha php form,,,
this complete form code doesnot work.
here link code: http://thefairygodsister.com/testtest/index%20-%20copy.txt
the basic steps take are: lets add 2 numbers kind of math
$num1 = rand(15,50); $num2 = rand(2,9); $salted_answer = $num1+num2 + 187; //thats salt
put salted_answer hidden input on form.
when checking:
if ($_post['salted_answer'] - 187 == $_post['answer']) { echo "all good"; // processing }
thats it.
Comments
Post a Comment