PHP ver gevorderde |
|
Oja, sorry..
<?php
$pattern = /^([a-z0-9_-]+\.)*[a-z0-9_-]+@([a-z0-9_-]{2,}\.)+([a-z0-9_-]{2,})$/i;
if(preg_match($pattern, $_POST['email']))
{
print 'Geldig';
}
else
{
print 'Ongeldig';
}
?>
<?php $pattern = /^([a-z0-9_-]+\.)*[a-z0-9_-]+@([a-z0-9_-]{2,}\.)+([a-z0-9_-]{2,})$/i; { } else { } ?>
|