<?php// Begin the sessionsession_start();// To avoid case conflicts, make the input uppercase and check against the session value// If it's correct, echo '1' as a stringif(strtoupper($_GET['captcha']) == $_SESSION['captcha_id']) echo 'true';// Else echo '0' as a stringelse echo 'false';?>