labaiss Posted February 2, 2011 Report Share Posted February 2, 2011 kāds varētu izpalīdzēt ar preg_match parastam vārdam. Respektīvi vārds drīkst sastāvēt tikai no burtiem, bez atstarpēm - latviešu cilvēka vārds :D P.S. paldies.... es google googloju bet neko neatradu un vēl nerubīju to... :p Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 2, 2011 Report Share Posted February 2, 2011 /^[a-zA-Z]$/ Quote Link to comment Share on other sites More sharing options...
Kemito Posted February 2, 2011 Report Share Posted February 2, 2011 Nu pēc tava teiktā gribi teikt, ka nekā googlē nav tādā gadījumā par šo? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 3, 2011 Report Share Posted February 3, 2011 Viņš, vienkārši, To "nerubī"... xDDD Quote Link to comment Share on other sites More sharing options...
mickys Posted February 3, 2011 Report Share Posted February 3, 2011 /^[a-zA-Z]$/ Latviešu cilvēka vārdam tomēr nederēs... Quote Link to comment Share on other sites More sharing options...
mounkuls Posted February 3, 2011 Report Share Posted February 3, 2011 Nu bet kas traucē tos vajadzīgos burtus tur pierakstīt klāt?:) Quote Link to comment Share on other sites More sharing options...
briedis Posted February 3, 2011 Report Share Posted February 3, 2011 Nu bet kas traucē tos vajadzīgos burtus tur pierakstīt klāt?:) loģiskās domāšanas trūkums? Quote Link to comment Share on other sites More sharing options...
labaiss Posted February 3, 2011 Author Report Share Posted February 3, 2011 (edited) Nu bet kas traucē tos vajadzīgos burtus tur pierakstīt klāt?:) traucē,tas ka es nezinu kā to izdarīt - bet tulīt sākšu mācīties :D p.s. visi zin, bet tā pat neviens neapsaka :D Edited February 3, 2011 by labaiss Quote Link to comment Share on other sites More sharing options...
mounkuls Posted February 3, 2011 Report Share Posted February 3, 2011 (edited) Nu taču [a-zmazie_latviešu_burtiA-Zlielie_latviešu_burti] Edited February 3, 2011 by mounkuls Quote Link to comment Share on other sites More sharing options...
labaiss Posted February 3, 2011 Author Report Share Posted February 3, 2011 Nu taču [a-zmazie_latviešu_burtiA-Zlielie_latviešu_burti] pāldies :D Quote Link to comment Share on other sites More sharing options...
labaiss Posted February 3, 2011 Author Report Share Posted February 3, 2011 kaut ko tādu sameisteroju - gan jau pilnīgs fail, bet man liekas ka strādā preg_match("/^[^a-zēūīāšģķļžčņ]|[^a-zēūīāšģķļžčņ]+/i", $name) Quote Link to comment Share on other sites More sharing options...
briedis Posted February 3, 2011 Report Share Posted February 3, 2011 ir gan nedaudz feils... Quote Link to comment Share on other sites More sharing options...
labaiss Posted February 3, 2011 Author Report Share Posted February 3, 2011 ir gan nedaudz feils... :D tā jau domāju jo man kaut kā daGrevis - variants īsti nedarbojās... pat bez latviešu mīkatinājumiem Quote Link to comment Share on other sites More sharing options...
mounkuls Posted February 3, 2011 Report Share Posted February 3, 2011 /i labāk nevajag lietot, jo Žanis neskaitās tas pats žanis. (/i nozīmē reģistrnejūtīgs) Quote Link to comment Share on other sites More sharing options...
labaiss Posted February 3, 2011 Author Report Share Posted February 3, 2011 (edited) ok. preg_match("/^[^a-zēūīāšģķļžčņ]|[^a-zēūīāšģķļžčņ]+/", $name); tad šitas vairs neskaitās super fails? tādu drīkst lietot, lai validētu latvieši cilvēka vārdus un uzvārdus?? Edited February 3, 2011 by labaiss Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.