![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/09/2005, 09:16
|
| | Fecha de Ingreso: agosto-2005
Mensajes: 143
Antigüedad: 19 años, 5 meses Puntos: 0 | |
Holas. Código PHP: <?php
function checkmail($email=null)
{
if(eregi('^[^@ ]+@[^@ ]+.[^@ ]+$', $email))
return true;
return false;
}
$email = '[email protected]';
if(checkmail($email))
echo 'válido';
else
echo 'inválido';
?> Saludos ;) |