This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Email Validation
Started 16 years ago by realestsrv | 2 posts |
-
Your email validation prohibits single character domains such as Qwest (q.com).
Your form will not permit user@q.com (for example)
This validation should include accepting single character domain names.
Thanks.
Posted 16 years ago # -
You are right, there is small bug with the email validation.
To fix it, edit your includes/common-validator.php, search around line 209 (inside validate_email() function) for this code:
$regex = '/^[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]+\.[A-z0-9]{2,6}$/';
replace that line above with this one:
$regex = '/^[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]*\.[A-z0-9]{2,6}$/';
I'll update the package with this bugfix.MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.