mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
10 lines
324 B
PHP
10 lines
324 B
PHP
|
<?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;
|
||
|
?>
|