Loading...
 
Skip to main content

Custom Share Module 0.1dev

Features / Usability

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.

Upcoming Events

1)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4) 
Tiki birthday
5)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting