Files
pannello/jquery/jquery-validation-1.9.0/demo/captcha/process.php
2015-10-08 11:00:52 +02:00

14 lines
302 B
PHP

<?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';
?>