Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Dear Sir,
I want to check whether the ,entered email id exist or not .

thank you
Ankita Mali
Posted
Comments
Ankita Mali 25-Apr-11 1:09am    
please give me code
Sandeep Mewara 25-Apr-11 1:33am    
Go to some other place if you are looking for code and not some help.

I want to check whether the ,entered email id exist or not
When, where? What have you tried? :doh:

I guess you want a feature to check if emailid already exists or not in your application. For that, you need to execute a query with the email id and see if count is greater than zero. If so, it exists.
SQL
SELECT COUNT(*) FROM EmailTable WHERE storedEmailIDs = 'checkThisID@Abc.com'
 
Share this answer
 
Comments
Abhinav S 25-Apr-11 1:06am    
:)Interesting approach but I doubt the OP wanted that. My 5 for the sarcasm though.
Sandeep Mewara 25-Apr-11 1:32am    
Sounds like you kicking me... :) But I will take it. ;)
Abhinav S 25-Apr-11 7:18am    
No not really - not in this forum.

For that I shall wait for our next Cricket FL tournament. :)
Sandeep Mewara 25-Apr-11 7:54am    
Oh man... right... I will make sure I send you the team today... will drop you an email. :)

Why next.... current wala kafi hai... assuming you too are missing few matches in between. :)
1. You should not do this. Instead, inform the user when he enters the email address that verification mail will be sent on the same id and till then do not allow him to do anything on the website.

2. If you are referring to validating email address that it can be a valid email, you are use from a large list on regular expression available on the web.

3. If your website provides the email addresses to the users, like Gmail does, then you must be having a table to store already taken addresses. When the user enters one and submits the form, check if it exists in the database and return appropriate message if it already exists.

You may have noticed the importance of being descriptive while asking the question by now. If you can, update the current question and try to describe your problem next time. :)
 
Share this answer
 
v2
Comments
Abhinav S 25-Apr-11 1:05am    
Good answer. My 5.
check your email-ides like the string comparison
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900