creating a php validation script that will validate only a .edu email address

Need help creating a validation script that will allow only an email address such as [email protected]

Cant seem to find anything like that… is there anywhere I can go to find help with this?

Thank you in advance for your help

i’m assuming you already have a script of some kind and just want to validate the email address??
$email = ‘[email protected]’;

// is .EDU present in the string
if(strstr($email, ‘.EDU’))
// if it is, do something
// if its not, do something else
if you need more help, let me know :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service