note 21407 added to function.strlen
| From: | justinfielding at hotmail dot com | Date: | Sat, 11 May 2002 23:04:13 +0000 |
| Subject: | note 21407 added to function.strlen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30487@lists.php.net to get a copy of this message | ||
Im having problems with this function.
Im trying to find the length of the string $input_password and the function works (if I echo the
value of $password_len it is correct) but for some reason, even if $password_len < 3 is not true,
it still sets the valid flag to 0. Why???? It's driving me mad!
// Check Password length
$password_len = strlen(strval($input_password));
if ( $password_len < 3);
{
$input_password_valid = 0;
$failure = 1;
}
--
http://www.php.net/manual/en/function.strlen.php
http://master.php.net/manage/user-notes.php?action=edit+21407
http://master.php.net/manage/user-notes.php?action=delete+21407
http://master.php.net/manage/user-notes.php?action=reject+21407