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 member@hotmail.com, 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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.