email-valideren
Gesponsorde koppelingen
PHP script bestanden
- email-valideren
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
$mail=$_POST["mail"];
if($mail)
{
$stremail=$mail;
$result=ereg("^[^@ ]+@[^@ ]+\.[^@ ]+$",$stremail,$trashed);
if(!$result){
echo "SLECHT";
}
else
{
echo"GOED";
}
}
?>
<form action="test.php" method="post">
<input type="text" name="mail" size="40" maxlength="256">
<input type="submit" value="check">
</form>