hjg
2025-01-24 f9ff55a8b66ceda8411f2cc47e21d3de0b966949
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
 
// Begin the session
session_start();
 
// To avoid case conflicts, make the input uppercase and check against the session value
// If it's correct, echo '1' as a string
if(strtoupper($_GET['captcha']) == $_SESSION['captcha_id'])
    echo 'true';
// Else echo '0' as a string
else
    echo 'false';
 
?>