Quick n00b ? how do you count characters?
Posted: Sat Jul 17, 2004 9:28 pm
I need to count characters for a password. How do i do that? I want it so it needs to be at least 6 characters long.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
if(strlen($input) < 6){
echo "Error. Input must be 6 or more.";
}
else {
echo "Thanks for inputting a string with 6 or more characters! ";
}