chocopi Posted May 13, 2007 Share Posted May 13, 2007 for some reason my validation keeps coming back as incorrect when it isnt. this is the code thats giving the problem: if ($raw_password < 5){ echo ("Your password must be greater than 5 characters."); require_once ('page_footer.php'); die (""); } The code keeps returning 'Your password must be greater than 5 characters.' even if i have typed in 20 characters Any help would be appeciated, ~ Chocopi Quote Link to comment https://forums.phpfreaks.com/topic/51217-solved-password-validation/ Share on other sites More sharing options...
chigley Posted May 13, 2007 Share Posted May 13, 2007 <?php if (strlen($raw_password) < 5) { echo ("Your password must be greater than 5 characters."); require_once ('page_footer.php'); die (""); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/51217-solved-password-validation/#findComment-252230 Share on other sites More sharing options...
chocopi Posted May 13, 2007 Author Share Posted May 13, 2007 cheers, once again lol something so simple THANKS Quote Link to comment https://forums.phpfreaks.com/topic/51217-solved-password-validation/#findComment-252234 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.