Identify the invalid email addresses

the mail() function

Moderators: egami, macek, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Fri Jan 03, 2003 12:29 am

with regular expresions...

allowed chars in email is here RFC 821
somewhare here i post email verification script you can find at this forum if you want...

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Fri Jan 03, 2003 3:04 am

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

Code: Select all

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests