PageRenderTime 39ms CodeModel.GetById 32ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
PHP | 10 lines | 10 code | 0 blank | 0 comment | 2 complexity | 55e7c5ea429c9b2f79e789482b9d9293 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 = 'false';
 8}
 9echo $valid;
10?>