PageRenderTime 11ms CodeModel.GetById 9ms app.highlight 1ms 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
 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';
 5foreach($emails as $email) {
 6	if( strtolower($email) == $request )
 7		$valid = 'false';
 8}
 9echo $valid;
10?>