Checking for existing user/s
Posted: Wed Aug 20, 2014 4:05 am
A registration script that I am working on follows these (standard) steps:
1. User enters info
2. Register account
3. Send activation email
4. Activate account.
I'm indecisive on where to check for the existing of the email address in the database that i want to use that as a username. Do i check during step 1, using an AJAX option or do i check during step 2 once the information is passed to the database? Now that i think about it more, both options should be in place; disabled Javascript would render the AJAX option pointless. Any thoughts / advice?
1. User enters info
2. Register account
3. Send activation email
4. Activate account.
I'm indecisive on where to check for the existing of the email address in the database that i want to use that as a username. Do i check during step 1, using an AJAX option or do i check during step 2 once the information is passed to the database? Now that i think about it more, both options should be in place; disabled Javascript would render the AJAX option pointless. Any thoughts / advice?