tiy Posted May 9, 2006 Report Share Posted May 9, 2006 Kads var isti paskaidrot ka tas darobjas caur input tiek sanemt strings name, vajaga apskatities vai vina ir tikai A-Z un a-z jo kaut kadi gluki vadu ieksha "sss1"==ok "sss"==ok "222"=shit? lasiju php.net nevaru iebraukt , []-ko dara shie parametri {}- un ko shie if( ereg("([A-Za-z]{1,65)",$Name) ) echo "ok";else echo "shit"; Link to comment Share on other sites More sharing options...
Delfins Posted May 9, 2006 Report Share Posted May 9, 2006 Ko tur ko neiebraukt? Viss ir smuki aprakstīts... [] - simbolu kopa {} - atkārtojumu ierobežojums Link to comment Share on other sites More sharing options...
tiy Posted May 9, 2006 Author Report Share Posted May 9, 2006 kapec tad der aa 11 aa@@# , bet ,lai panak lai varetu vadit tikai A-Z un a-z Link to comment Share on other sites More sharing options...
andrisp Posted May 10, 2006 Report Share Posted May 10, 2006 tev tur netrūkst viens } vispār ? Link to comment Share on other sites More sharing options...
Delfins Posted May 10, 2006 Report Share Posted May 10, 2006 kapec tad der aa 11 aa@@# Tāpēc ka tev tāds nosacījums, un tev vajag /^[a-z]{1,65}$/i ^ - sākums $ - beigas Link to comment Share on other sites More sharing options...
Recommended Posts