PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/jquery-validate/demo/marketo/emails.phps

#
Unknown | 10 lines | 10 code | 0 blank | 0 comment | 0 complexity | e0022416bd662ca29ac7e2418ae1d5aa MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <?php
  2. $request = trim(strtolower($_REQUEST['value']));
  3. $emails = array('glen@marketo.com', 'george@bush.gov', 'me@god.com', 'aboutface@cooper.com', 'steam@valve.com', 'bill@gates.com');
  4. $valid = 'true';
  5. foreach($emails as $email) {
  6. if( strtolower($email) == $request )
  7. $valid = 'false';
  8. }
  9. echo $valid;
  10. ?>