Compare passwords at registration

Ask about a PHP problem here.
Post Reply
User avatar
killfrog47
Posts: 106
Joined: Tue Mar 12, 2013 2:52 am
Location: Tempe, AZ
Contact:

Compare passwords at registration

Post by killfrog47 »

So I am working on some user registration and login system. I want to compare the users password before creating the account. What is the best way of doing that? Using PHP or javascript? I know HOW to do it just not sure where to do it, server or client side.
ScTech
Posts: 92
Joined: Sat Aug 24, 2013 8:40 pm

Re: Compare passwords at registration

Post by ScTech »

Personally I think server side. Since you should be using input type password, the user won't know which part of their two fields are different so they would have to retype it anyways.
<?php while(!$succeed = try()); ?>
User avatar
killfrog47
Posts: 106
Joined: Tue Mar 12, 2013 2:52 am
Location: Tempe, AZ
Contact:

Re: Compare passwords at registration

Post by killfrog47 »

ScTech wrote:Personally I think server side. Since you should be using input type password, the user won't know which part of their two fields are different so they would have to retype it anyways.


gotcha gotcha alrighty =) thanks!
Post Reply