Set Minimum Password Length In PHP
RegisterLogin
Set Minimum Password Length In PHP
Post Description: I Want To Know How To Set The Minimum Password Legnth On Each Login Page So My Users Can Create Long Secured Passwords
Tags: Set, Minimum, Password, Length, Php
This Post Was Posted On Oct 18, 2009 By Akon #2588
Post Description: I Want To Know How To Set The Minimum Password Legnth On Each Login Page So My Users Can Create Long Secured Passwords
Tags: Set, Minimum, Password, Length, Php
This Post Was Posted On Oct 18, 2009 By Akon #2588
Set Minimum Password Length In PHP by Akon
if you can help me how to do this on my php script, thanks
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
webune
#2602 1
you can use the strlen() in php. the strlen() functions counts the number of character that are in a string.
<?php
if(strlen($password) < 6){
echo 'ERROR: password is too short';
}else{
echo 'Congratulations! Your password is secured';
}
?>Oct 18, 2009 Reply Report abuse
©2011 Webune Forums - Sun Dec 18, 2011 10:05 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3