| Index
» Projekty
» phpMyEdit
» Fórum
» How to validate an email field |
 |
Tiji Thomas
Založený: 25.06.2010
Príspevky: 4
Zaslal: 2010-06-25 11:41
Návrat hore
Odpovedať s citátom
|
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
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-06-26 15:33
Návrat hore
Odpovedať s citátom
|
Post your code.
|
Tiji Thomas
Založený: 25.06.2010
Príspevky: 4
Zaslal: 2010-06-26 16:21
Návrat hore
Odpovedať s citátom
|
$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
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-06-26 17:53
Návrat hore
Odpovedať s citátom
|
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
Založený: 25.06.2010
Príspevky: 4
Zaslal: 2010-06-27 11:53
Návrat hore
Odpovedať s citátom
|
'js' option is working well. But the problem is when I am including 'regexp' the previous one is also not working.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|