View Full Version : checking current pwd is available or not
11-11-2012, 02:35 AM
I mean when u type ur current password soon after display a message "Ur password is correct.."....
plzz help me frnds......
11-11-2012, 06:05 AM
you can start reading here :
- A few suggestions.
-If you want help learning, this is the right place.
- if you want someone to do it for you, there is a job hiring forum.
- try using a normal size font in your posts, and use some formal english, not texting shorthand. Some of the people here can help you but may not have english as a first language and will have a hard time understanding your questions.
11-11-2012, 09:03 AM
You will need server-side code to check if the password has already been taken by someone else.
"Dives sum, si non redo eis quibus debeo. - I am a rich man as long as I do not pay my creditors"
11-13-2012, 02:36 AM
11-13-2012, 07:17 AM
See the advice given you by DanInMa in Post #2.
11-13-2012, 07:37 AM
What do you mean by check if the new password is available - if you meran is someone else using that password already then you have instantly helped someone find out someone else's password.
11-13-2012, 07:41 AM
You also could use ajax for it.
By clicking "change password" you just have to send the escaped fieldvalue as 'GET' to a PHP File using AJAX.
Code within your body tag
//Loading a free library where ajax is included
<form id="passcheck" method="post">
<input type="text" size="45" id="tocheck">
<input onclick="checkpw();" type="button" value="Change password">
$sel=mysql_query("select id from yourdatabasetable where pass='".$_GET['check']."'");
alert('Password already exists');
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.