PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/lib/jquery-validate/demo/captcha/process.php

#
PHP | 14 lines | 7 code | 3 blank | 4 comment | 2 complexity | afef8cf46165b79b9135e055afd84675 MD5 | raw file
 1<?php
 2
 3// Begin the session
 4session_start();
 5
 6// To avoid case conflicts, make the input uppercase and check against the session value
 7// If it's correct, echo '1' as a string
 8if(strtoupper($_GET['captcha']) == $_SESSION['captcha_id'])
 9	echo 'true';
10// Else echo '0' as a string
11else
12	echo 'false';
13
14?>