Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/02/2011, 14:17
walterdevel
 
Fecha de Ingreso: diciembre-2010
Mensajes: 788
Antigüedad: 13 años, 4 meses
Puntos: 51
Respuesta: estaria bien esta validacion

A ver si esto te sirve ( expresiones regulares ):

Código PHP:
Ver original
  1. $pattern = '/[^a-z|á|à|è|é|ì|í|ù|ú|ò|ó|ï|\']/';
  2.  
  3. if(preg_match($pattern, $string, $result)) {
  4.    
  5.     echo 'ES INCORRECTO';
  6. } else {
  7.     echo 'ES CORRECTO';
  8. }

$string es la candea que vas a validar.