php - sprawdzanie maila.txt

(0 KB) Pobierz
<?php 
$mail  =  "lipny.ten-mail_09@no.i-co-z.tego.com.pl"; 
$regexp  =  "^([a-z0-9_\.-]*)@([a-z0-9\.-]*)"; 
$mail  =  strtolower($mail); 
if  (ereg($regexp,  $mail,  $checked_str)) 
{ 
print("Tw�j  mail  $checked_str  jest  poprawny"); 
} 
else 
{ 
print("Popraw  maila  "); 
} 
?> 
Zgłoś jeśli naruszono regulamin