Jump to content

hii captcha


zhangy

Recommended Posts

sumit like this?

 


$number1 = rand(1,10);
$number2 = rand(1,10);
$answer = $number1 + $number2;

echo "<form action=\"?mod=cat\" method=\"POST\" /> what is {$number1} + {$number2}? <input type=\"text\" name=\"asn\" id=\"asn\" /> <input type=\"submit\" value=\"submit\" /> ";



if($_GET['mod'] == "cat" ) { 
$myanswer = (int)$_POST['asn'];

if($myanswer == $answer ) { echo " Right "; } else { echo " Wrong "; } } 

 

That is the idea i would use but im not the best in the world. BUT since computers are designed to do math that would be easily cracked thus doing nothing.

Link to comment
https://forums.phpfreaks.com/topic/137008-hii-captcha/#findComment-715702
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.