PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jun 24, 2019 5:35 pm

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.

_________________
Supported PHP versions No longer supported versions


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
Celauran wrote:
typically just username and password

Is this a personal preference or a client specification; and if you had to, would you convince or attempt to, a client to go for the minimalist route? I'd also opt to have as few details as possible for initial registration and let the user update information at a later stage but i'm not sure the client i'm working with is up for it.

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

_________________
Supported PHP versions No longer supported versions


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:  
Powered by phpBB® Forum Software © phpBB Group