note 21407 rejected from function.strlen by torben

From: Date: Sat, 11 May 2002 23:11:49 +0000
Subject: note 21407 rejected from function.strlen by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30490@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; }

« previous php.notes (#30490) next »