steviez Posted April 18, 2007 Share Posted April 18, 2007 Hi, In my signup script i want to make sure that the minimum passwrod length is 6, how do i do this in php? Thanks Link to comment https://forums.phpfreaks.com/topic/47615-solved-help-with-signup-script/ Share on other sites More sharing options...
Michael Lasky Posted April 18, 2007 Share Posted April 18, 2007 http://us.php.net/strlen Link to comment https://forums.phpfreaks.com/topic/47615-solved-help-with-signup-script/#findComment-232478 Share on other sites More sharing options...
boo_lolly Posted April 18, 2007 Share Posted April 18, 2007 if(strlen($_POST['password']) > 6){ echo "password is too long."; } Link to comment https://forums.phpfreaks.com/topic/47615-solved-help-with-signup-script/#findComment-232479 Share on other sites More sharing options...
steviez Posted April 18, 2007 Author Share Posted April 18, 2007 No no no, i need it to make sure that the password is at least 6 charicters long Link to comment https://forums.phpfreaks.com/topic/47615-solved-help-with-signup-script/#findComment-232484 Share on other sites More sharing options...
boo_lolly Posted April 18, 2007 Share Posted April 18, 2007 if(strlen($_POST['password']) < 6){ echo "password is too short..."; } it's that simple buddy. Link to comment https://forums.phpfreaks.com/topic/47615-solved-help-with-signup-script/#findComment-232506 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.