Hello, I just started to use pmforms.php, especially the mail part.
On the site there is an idea to check if an email address contains an
@-sign.
I use this one
function valid_mail($str)
{
return (ereg
('(^[0-9a-zA-Z_-]+(\.[0-9a-zA-Z_-]+)*@([0-9a-zA-Z_\-]{1,}\.)+[0-9a-zA-Z]{2,}
$)', $str));
}
Is there an even (much) better one?
Greets
Peter
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
