aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/emails.php
blob: 059ac14d75ea2aeec7447819a13388ac7cfb21dc (about) (plain)
1
2
3
4
5
6
7
8
9
10
<?php
$request = trim(strtolower($_REQUEST['email']));
$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 = '"Thats already taken."';
}
echo $valid;
?>