Jump to content

Check if email exists in MySQL database


visionaire

Recommended Posts

Hello,

 

I am working on a site where a user will input an email address, it will then need to be checked whether or not that email exists in a database, and only if it exists can the user continue. What I would like ideally is an input field where the user writes the email, then below that a line which shows either green for 'email found' or red 'email not found, try again'. I also want the user to be unable to continue if the email field is filled in, but giving the 'not found' message.

 

I have been searching for hours for a tutorial on this, but so far could not find any.

 

Any help would be greatly appreciated!

Link to comment
https://forums.phpfreaks.com/topic/232746-check-if-email-exists-in-mysql-database/
Share on other sites

Were you already able to do this without ajax? If not have a read on database handling, an excellent tutorial written my Crayon Violent can be found at phpfreaks: http://www.phpfreaks.com/tutorial/php-basic-database-handling 

 

Ones you have that script working without ajax, It should be pretty do-able with ajax.

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.