Loading...
 
Skip to main content

Features / Usability


Re: Re: "Validate email address" feature? And domain filtering

posts: 38 United States

In case anyone else ever wonders, the change looks like this:

Change:

//Fix by suilinma

if (!eregi("
-_a-z0-9+(\\.-_a-z0-9+)*\\@(-a-z0-9+\\.)*(a-z{2,4})$", $Email)) {


to

if (!eregi("
-_a-z0-9+(\\.-_a-z0-9+)*\\@snhu\.edu$", $Email)) {


This validates against the domain snhu.edu.

You may also want to update the appropriate language.php file to make a more appropriate error message.

e.d.

There are no comments at this time.