PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 23, 2019 5:21 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Aug 20, 2014 4:05 am 
Offline
DevNet Master
User avatar

Joined: Sun Feb 15, 2009 12:08 pm
Posts: 2794
Location: .za
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?

_________________
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering


Top
 Profile  
 
PostPosted: Wed Aug 20, 2014 6:30 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
I think either option 2, or option 1 AND option 2 are fine. I like to keep my registration forms to the bare minimum -- typically just username and password -- so there wouldn't be much benefit for me in implementing the AJAX solution.

_________________


Top
 Profile  
 
PostPosted: Thu Aug 21, 2014 3:28 am 
Offline
DevNet Master
User avatar

Joined: Sun Feb 15, 2009 12:08 pm
Posts: 2794
Location: .za

_________________
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering


Top
 Profile  
 
PostPosted: Thu Aug 21, 2014 7:09 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
I think the fewer hurdles to registration you present, the better. Last thing I want to do is turn away a prospective client via an obnoxious sign up form. You can set your username later if email isn't a sufficient identifier. I assume you know your email, so I'm only going to ask for it once. I'll be sending an activation email to check for that. Ditto password. If you enter it incorrectly, there are recovery mechanisms for that. Most people will get it right the first time and appreciate the simplicity.

_________________


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group