![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
02/01/2009, 12:59
|
![Avatar de hgp147](http://static.forosdelweb.com/customavatars/avatar163020_2.gif) | | | Fecha de Ingreso: diciembre-2006 Ubicación: Buenos Aires, Argentina
Mensajes: 980
Antigüedad: 18 años, 1 mes Puntos: 36 | |
Respuesta: Restringir caracteres! Hola mytwm. Lo podés hacer con expresiones regulares Código PHP: if(!eregi("^[A-Z0-9_-]{1,40}$", $cadena)){
echo "Error";
}
Info: http://ar2.php.net/manual/es/function.eregi.php |