silverstripe-userforms/thirdparty/jquery-validate/demo/milk/emails.phps
2013-03-18 19:06:47 -04:00

10 lines
307 B
PHP

<?php
$request = trim(strtolower($_REQUEST['value']));
$emails = array('glen@marketo.com', 'george@bush.gov', 'me@god.com', 'aboutface@cooper.com', 'steam@valve.com', 'bill@gates.com');
$valid = 'true';
foreach($emails as $email) {
if( strtolower($email) == $request )
$valid = 'false';
}
echo $valid;
?>