Mensajes [6] - Enviado el Jueves 23 de Abril de 2009 a las 13:32hs
hola tengo un campo que debe guardar nombre, puede caer dentro de opciones como las siguientes:
ROSA
ROSA MARIA
entonces puede o no contener espacios, puse los siquiente para validarla
if (!ereg("^[A-Z]{3,20}$s+", trim($nomnuevo))) {
header ("Location: $pag?accion=nivel&id_ven=$id_ven&error=5");
exit;
}
funciona sin la s pero no me deja poner espacios, asi que puse la parte de /s, ya he experimentado con las siguientes formas
if (!ereg("^[A-Z]{3,20}$s*", trim($nomnuevo))) {
if (!ereg("^[A-Z]{3,20}$s", trim($nomnuevo))) {
if (!ereg("^[A-Z]s{3,20}$", trim($nomnuevo))) {
if (!ereg("^[A-Z]{3,20}s$", trim($nomnuevo))) {
if (!ereg("^[A-Zs]{3,20}$", trim($nomnuevo))) {
pero con ninguna me acepta espacios, alguien tendra la sintaxis correcta??
Mensajes [1] - Enviado el Martes 30 de Noviembre de 2010 a las 19:32hs
Intenta con esto ...
"^[A-Z ]{3,20}....
Mensajes [46] - Enviado el Sabado 22 de Enero de 2011 a las 04:10hs
Abercrombie And Fitch
Abercrombie
abercrombie uk
abercrombie london
abercrombie sale
Abercrombie And Fitch UK
Abercrombie And Fitch sale
Abercrombie And Fitch outlet
Abercrombie outlet
abercrombie and fitch hoodies
abercrombie and fitch london
abercrombie & fitch uk
abercrombie fitch uk
abercrombie fitch
abercrombie & fitch
rosetta stone
rosettastone
stone language
rosetta stone reviews
the rosetta stone
rosetta stone discount
rosetta stone language
rosetta stone software
rosetta stone language learning
rosetta stone online
rosetta stone coupon
rosetta stone spanish
p90x workout schedule
p90x workout schedule
p90x workout schedule
Abercrombie And Fitch
Abercrombie
abercrombie uk
abercrombie london
abercrombie sale
Abercrombie And Fitch UK
Abercrombie And Fitch sale
Abercrombie And Fitch outlet
Abercrombie outlet
abercrombie and fitch hoodies
abercrombie and fitch london
abercrombie & fitch uk
abercrombie fitch uk
abercrombie fitch
abercrombie & fitch
p90x workout schedule