1 2 3 4 5 6
unset($_SESSION['checkcap']); if($_POST['captcha'] == $_SESSION['cap']) { $_SESSION['checkcap']=true; echo 1; }