473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Email confirmation during registration

1
Hi,im trying to make registration form..And i want that users can use just couple of emails to register..I will try to explain what i mean:

Im using code to check mail:

function checkEmail($str)
{
return preg_match("/^[\.A-z0-9_\-\+]+[@][gmail_\-]+([.][com_\-]+)+[A-z]{1,4}$/", $str);
}

This works fine if u trying to register for example with sample@gmail.com..But confusing moment is if i want to add more emails to check..

If i add more functions for email check it comes to fail.. because if i will add another checkemail function (for example hotmail) and in register form i will try to add hotmail.com it wont allow because first check is with gmail..

So i want to ask u guys,how to make check mail function for 5,6 or more emails???

I hope u guys understand what i mean..If not i will try to explain more..

Sorry for my bad english..
Jul 12 '11 #1
2 2320
Dormilich
8,658 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. filter_var($email, FILTER_VALIDATE_EMAIL);
Jul 12 '11 #2
You are using gmail authentication script that's why it checking only gmail users. Use email function and check or remove gmail from the script.

Thank You
Jul 16 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kenneth Farmer | last post by:
Several of my websites are getting hosed by automated scripts that insert all kinds of jiberish into the forms and newsletter sign-up fields. Sometimes I get a hundred an hour. I noticed the...
0
by: Smokey Grindle | last post by:
I am using the user creation wizard in asp.net 2.0 and using it to send the user an email message when their account is created, well this works great if the address is a valid mailbox, but when it...
2
by: Tatyana | last post by:
Hello, I'm having problems to Style Order Confirmation Email Body. I'm sending it out as HTML. Everything looks fine in Outlook, but hotmail accounts (checked it on yahoo and hotmail) seem to...
2
by: .Net Sports | last post by:
I'm using CDO mail in my asp scripts, and I need to find a script that whereas a user signs up for your website and when he hits submit, an email goes to his email box with a confirmation link for...
2
by: gomzi | last post by:
hi, Suppose i want the user to specify his country at the time of registration, then should i provide a textbox or go for a dropdownlist(one cant be sure of covering all the countries...)? ...
2
by: pbd22 | last post by:
Hi. I have got the email part working. I have it set up so there is a temp_table of the registration. There is a confirm_code column with an encrypted ID. My question is this - it seems...
8
by: nargis2009 | last post by:
Hi, I have been encountering problems with my web page which is supposed to send email, and wondered if anybody can help find error. Initially I had all codes in one page and on click of...
4
by: xyrhou | last post by:
When i uploaded my site i got these error at registration. When a user register he/she will receive a confirmation email with the link to activate his/her account. But i got this error when i click...
2
by: tutusaint | last post by:
Hello, I need to capture users image during registration. I have a working registration script but needs to add user image. Here is the add.php script. ================================= <?...
5
by: tutusaint | last post by:
My registration confirmation code is not sending out emails. Please help. <?php if (isset($_POST)) { //$Bday = date("dd-mm-yyyy"); include "dbCon.php";
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.