ggdworkshop/public/js/lib/demo/captcha/process.php
German Correa 9c11ba4d38 Manual merge html from master
- Delete old files
- Re-estructure project dirs
2017-12-09 19:18:51 -03:00

14 lines
315 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';
?>