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

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.