PageRenderTime 44ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/jquery-validate/demo/milk/emails.php

#
PHP | 10 lines | 10 code | 0 blank | 0 comment | 2 complexity | bc661d41bb89e2dac11f64d1563470fc MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <?php
  2. $request = trim(strtolower($_REQUEST['email']));
  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 = '"Thats already taken."';
  8. }
  9. echo $valid;
  10. ?>