Forum Moderators: coopster
if($_POST['CaptchaStr']!== $_POST['hash']) print 'captchacorrect'; } else { print 'captchaincorrect'; }
This is just comparing the $_POST['CaptchaStr'] to $_POST['hash'];
The!== as opposed to!= (or === as opposed to ==) just means that it also checks the type.
$one = '1'; $two = 1;
$one == $two (true) $one === $two (false)