Identify the invalid email addresses

one minute sciptig and you get simple mail validator =)
this basics, regexp can be dificult =)

Code:
<?
$mail = $HTTP_POST_VARS["mail"];
if (!eregi("[a-z]+@[a-z]+\.[a-z]{2,3}", $mail)) {
onError("mail");
exit;
}
?>
 
Back
Top