Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  How to validate an email field

phpMyEdit General     How to validate an email field
Post new topic   Reply to topic    
 
Tiji Thomas     Joined: 25 Jun 2010   Posts: 4  
Post Posted: 2010-06-25 11:41
Back to top  Reply with quote     

Hello,

I am trying to validate an email field using regular expression. But I can't. Regular expression option is not working for any cases.

I am looking for a solution.


Regards

Tiji

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2010-06-26 15:33
Back to top  Reply with quote     

Post your code.

 
Tiji Thomas     Joined: 25 Jun 2010   Posts: 4  
Post Posted: 2010-06-26 16:21
Back to top  Reply with quote     

$opts['fdd']['lm_user_emailid']['js']['required'] = true;
$opts['fdd']['lm_user_emailid']['js']['regexp'] = '^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$';

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2010-06-26 17:53
Back to top  Reply with quote     

does that regex work perfectly in non-phpMyEdit scripts? it looks problematic.

and what happens that causes you to say it does not work, i.e. exactly what occurs?

 
Tiji Thomas     Joined: 25 Jun 2010   Posts: 4  
Post Posted: 2010-06-27 11:53
Back to top  Reply with quote     

'js' option is working well. But the problem is when I am including 'regexp' the previous one is also not working.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy