Jump to content

check for unique email address


dflow

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

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.