Jump to content

Email address domain blocking


Acute Chaos

Recommended Posts

I've found examples out there but I am too much of a noob to get this going.

 

I am setting up a db of users for a members' only site.  One field will be for their email address BUT the client wants to block the members' from using one specific domain in their email address.  i.e. If when the member is filling out the information, they put the email address as [email protected], they will get an error message that says something like "hey you can't use your "hotmail" account please use a different one."

 

So I figure from the examples I've seen online I should use explode to separate the email address out?

 

But when I look at the examples that are out there I don't know what the heck I'm looking at in half the code to be able to add this to the code that is validating the validity of the email address.  Is there a simple way out of this for a tired blurry eyed noob?

 

Thanks!

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/228538-email-address-domain-blocking/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.