gaziks52 Posted January 20, 2009 Report Share Posted January 20, 2009 man vajag lai vārdā būtu tikai burti .... un vārds būtu 3-30 simbolus garš... if(!ereg("^([a-zA-Z]){3,30}$",$name)) { $message .="Ievadi pareizu vārdu.<br/>"; } bet lieta tā ka rāda ka vārds nepareizs ja lieto garumzīmes!!! Link to comment Share on other sites More sharing options...
Kavacky Posted January 20, 2009 Report Share Posted January 20, 2009 (edited) mb_regex_encoding + mb_ereg? Edited January 20, 2009 by Kavacky Link to comment Share on other sites More sharing options...
gaziks52 Posted January 20, 2009 Author Report Share Posted January 20, 2009 paldies Link to comment Share on other sites More sharing options...
Recommended Posts