PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 2ms 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
 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';
 5foreach($emails as $email) {
 6	if( strtolower($email) == $request )
 7		$valid = '"Thats already taken."';
 8}
 9echo $valid;
10?>