Jump to content

Recommended Posts

I'm assuming that all your email address and login information will be stored in a MySQL Database.

 

You will need to do a MySQL SELECT query and count the number of rows returned. If the number of rows returned is greater than zero(0) then the inputted email address isn't unique.

 

The ajax part isn't that important to checking if the email address is unique or not. You'll have to use PHP or some other programming language to do that part. JavaScript (Ajax is apart of) isn't allow to connect to the server and do request as such.

 

Here is how it can work:

You have a form with an input field for the email and then onblur="checkUniqueEmail();" you have JavaScript function that utilized XHR and make a request to some php file that makes database query that returned true of false.

 

 

I'm assuming that all your email address and login information will be stored in a MySQL Database.

 

You will need to do a MySQL SELECT query and count the number of rows returned. If the number of rows returned is greater than zero(0) then the inputted email address isn't unique.

 

The ajax part isn't that important to checking if the email address is unique or not. You'll have to use PHP or some other programming language to do that part. JavaScript (Ajax is apart of) isn't allow to connect to the server and do request as such.

 

Here is how it can work:

You have a form with an input field for the email and then onblur="checkUniqueEmail();" you have JavaScript function that utilized XHR and make a request to some php file that makes database query that returned true of false.

 

 

 

thanks

more or less what i thought

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.