haardys Posted December 9, 2009 Report Share Posted December 9, 2009 Vai kāds nevar palīdzēt ar padomu sekojošā jautājumu - kā input laukam var uzlikt pārbaudi, lai tiešām ir ievadīts e-pasts nevis kāda simbolu virkne.. pagaidām man ir pārbaude tik uz garumu! Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted December 9, 2009 Report Share Posted December 9, 2009 http://www.regular-expressions.info/email.html Quote Link to comment Share on other sites More sharing options...
briedis Posted December 9, 2009 Report Share Posted December 9, 2009 function isValidMail($mail){ return preg_match('/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$/', $mail); } Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted December 9, 2009 Report Share Posted December 9, 2009 vo http://code.iamcal.com/php/rfc822/rfc3696.phps ! Quote Link to comment Share on other sites More sharing options...
marcis Posted December 9, 2009 Report Share Posted December 9, 2009 Es tomēr paliktu pie filter_var() Quote Link to comment Share on other sites More sharing options...
briedis Posted December 9, 2009 Report Share Posted December 9, 2009 Es tomēr paliktu pie filter_var() Paldies, par šitādas funkcijas eksitenci nezināju :) Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted December 10, 2009 Report Share Posted December 10, 2009 Diemžēl jebkuras papildus bibliotēkas izmantošana palielina potenciālo ievainojamību skaitu: http://www.securityfocus.com/bid/23359 Respektīvi -tā ir vēl viena lieta, kuras sapačošanai jāseko līdzi. 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.