Kristabs Posted March 21, 2006 Report Share Posted March 21, 2006 Palīdziet ar regex $persCode = "270785-11039"; $regex = ""; //Nevaru uzrakstiit straadaajoshu if(preg_match($regex,$persCode)){ return TRUE; } else{ return False; } Link to comment Share on other sites More sharing options...
Delfins Posted March 21, 2006 Report Share Posted March 21, 2006 netā pat ir kalkulators... Link to comment Share on other sites More sharing options...
bubu Posted March 21, 2006 Report Share Posted March 21, 2006 http://home.lanet.lv/~sd10104/tt1/md7.html Link to comment Share on other sites More sharing options...
Kristabs Posted March 21, 2006 Author Report Share Posted March 21, 2006 :)) Nu jau gan uuber. Nu man vajadzeeja vienkaarshi seshi digiti + domu ziime + 5 digiti. Nemaaceeju iisti uzrakstiit sintaktiski pareizi, bet nu probleema vairs nav iipashi aktuaala. Link to comment Share on other sites More sharing options...
GedroX Posted March 21, 2006 Report Share Posted March 21, 2006 http://home.lanet.lv/~sd10104/tt1/md7.html divi+divi@inbox.lv ir valida epasta adrese. :) Link to comment Share on other sites More sharing options...
bubu Posted March 21, 2006 Report Share Posted March 21, 2006 Ai tak tas kods man simts gadu atpakaļ rakstīts, loģiski ka kautkas gan jau ka nav pareizs. Bet tur nebija jāskatās uz e-pasta adresi, bet uz personas koda validāciju, par to gan domāju, ka ir pareizs. Link to comment Share on other sites More sharing options...
Recommended Posts