Forums

Email Validation Against a Set of Domains

mov2046 11 Jan, 2011
Hi,

I created a registration form that is linked to Joomla registration form. On the form, there is an email address field. I've been trying to find a way to validate a user's email address against a list of accepted domains. For example, if a user enters a non-gmail.com or non-yahoo.com email address, the system not only would prompt him to enter only a gmail.com or yahoo.com email address, but the system would only accept those domain email accounts. How can I make that happen? Any advice would be appreciated.

Thanks,
mov2046
GreyHead 11 Jan, 2011
Hi mov2046,

You could do a check for these two domains fairly easily in the ServerSide validation box; or in the browser with a custom LiveValidation using a regex to look for @gmail.com or @yahoo.com

Bob
mov2046 13 Jan, 2011
Thanks, Bob. I will try out those two options.
This topic is locked and no more replies can be posted.