Y-SLD/assets/plugins/jquery-validation/demo/captcha/process.php

14 lines
302 B
PHP
Raw Normal View History

2024-03-01 11:23:55 +00:00
<?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';
?>