Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
E-mail provider based Member registration!
Old 07-27-2006, 05:01 PM E-mail provider based Member registration!
Junior Talker

Posts: 4
Trades: 0
Hi guys,
I am currently working on a website and I want to know whether is it possible to register members based on their email providers for eg. I want to deny members registering using their email id's provided by Gmail, Yahoo, Hotmail, MSN etc ... and members with email ids ending with a certain address such as .gov or .net can only register on the website.

I request for some help on this topic.

Regards,
Utkarsh
utkarsh.s is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-28-2006, 03:37 AM Re: E-mail provider based Member registration!
Novice Talker

Posts: 5
Name: Robert Dixon
Trades: 0
if you are using php and the email variable is $email, when they have submitted on the page that registers them, put:

<?php
if ((((strpos($email, "@") !== false) && ((strpos($email, ".net") !== false) ||(strpos($email, ".com") !== false))) && ((strpos($email, "@gmail.com") === false) ||(strpos($email, "@yahoo.com") === false) ||(strpos($email, "@hotmail.co.uk") === false) ||(strpos($email, "@hotmail.com") === false) ||(strpos($email, "@msn.com") === false) ||(strpos($email, "@msn.co.uk") === false))){

continue registration (code here).

}else{
echo"Registration Denied.";
}
?>

If it is that there are just one or two email you do want to allow it would be easier to do that than blocking all these ones.
fatquack is offline
Reply With Quote
View Public Profile
 
Old 07-29-2006, 05:06 AM Re: E-mail provider based Member registration!
Junior Talker

Posts: 4
Trades: 0
hey thanx a lot for the help mate, but I have described the situation in more detail, if you could please check your email.

I would be really thankful mate.

cheers
utkarsh.s is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to E-mail provider based Member registration!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14504 seconds with 12 queries