summaryrefslogtreecommitdiff
path: root/bug/bug/jquery-validation-1.8.1/demo/milk/emails.php
diff options
context:
space:
mode:
Diffstat (limited to 'bug/bug/jquery-validation-1.8.1/demo/milk/emails.php')
-rw-r--r--bug/bug/jquery-validation-1.8.1/demo/milk/emails.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/bug/bug/jquery-validation-1.8.1/demo/milk/emails.php b/bug/bug/jquery-validation-1.8.1/demo/milk/emails.php
new file mode 100644
index 0000000..059ac14
--- /dev/null
+++ b/bug/bug/jquery-validation-1.8.1/demo/milk/emails.php
@@ -0,0 +1,10 @@
+<?php
+$request = trim(strtolower($_REQUEST['email']));
+$emails = array('glen@marketo.com', 'george@bush.gov', 'me@god.com', 'aboutface@cooper.com', 'steam@valve.com', 'bill@gates.com');
+$valid = 'true';
+foreach($emails as $email) {
+ if( strtolower($email) == $request )
+ $valid = '"Thats already taken."';
+}
+echo $valid;
+?> \ No newline at end of file