Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/04/2015, 10:23
mensajeescrito
 
Fecha de Ingreso: mayo-2012
Mensajes: 760
Antigüedad: 12 años
Puntos: 5
Respuesta: Expresion regular generica para movil

ok, vale.

Una cuestion mas:

Por que me dice "Undefined variable: email"¿?

Código PHP:
Ver original
  1. $email_movil = '[email protected]';
  2.        
  3.  
  4.     if (filter_var($email_movil, FILTER_VALIDATE_EMAIL)) {
  5.  
  6.         $email_movil==$email;
  7.         echo "El email es: ".$email;
  8.        
  9.     } else {
  10.  
  11.         $email_movil==$movil;
  12.         echo "El movil es ".$movil;
  13.     }