Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
not allowing a password in form php
08-09-2008, 09:28 PM
Post: #1
not allowing a password in form php
I have created a log in that requires a username and password. I have giving everyone a password of "temp" and then they are required to change it to their own password.

My question is how do I prevent the user from entering the password "temp" as the new password.
Find all posts by this user
Quote this message in a reply
08-09-2008, 09:29 PM
Post: #2
RE: not allowing a password in form php
Please use this.

PHP Code:
if ( 'temp' == $newPassword )
{
    echo 
'NICE TRY!';
}
else
{
    
// update password


Cheers!


Warm Regards,
Website Design India
Submit Free Links
Website Design Faridabad
Visit this user's website Find all posts by this user
Quote this message in a reply
08-09-2008, 09:30 PM
Post: #3
RE: not allowing a password in form php
Thanx its working!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:

Contact UsDeveloper SolutionReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication