0

I am trying to detect if a users password is less than or equal to 5 characters then to error the user otherwise continue..

<?
$pass = $_POST[password];
if($pass <=5){
echo"Error";
}else{
echo"YAY no errors!";
}
?>

I can't get it to work can anyone point out a way to detect this xD

Any help is much appreciated!

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by public-image
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.