summaryrefslogtreecommitdiff
path: root/bug/bug/jquery-validation-1.8.1/demo/captcha/process.php
diff options
context:
space:
mode:
Diffstat (limited to 'bug/bug/jquery-validation-1.8.1/demo/captcha/process.php')
-rw-r--r--bug/bug/jquery-validation-1.8.1/demo/captcha/process.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/bug/bug/jquery-validation-1.8.1/demo/captcha/process.php b/bug/bug/jquery-validation-1.8.1/demo/captcha/process.php
new file mode 100644
index 0000000..24fe3a8
--- /dev/null
+++ b/bug/bug/jquery-validation-1.8.1/demo/captcha/process.php
@@ -0,0 +1,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';
+
+?> \ No newline at end of file