DarrenReeder Posted November 25, 2009 Share Posted November 25, 2009 Ive got a register system and so far the only requirments are so you cant have some special characeters...i want to make it so you need at least 6 characters....if the variable for the password is '$_POST[pass]' how can you set up a if statement so if its 5 or less characters it says 'error' and kills the script Link to comment https://forums.phpfreaks.com/topic/182965-setting-minimum-for-input/ Share on other sites More sharing options...
Alex Posted November 25, 2009 Share Posted November 25, 2009 if(strlen($_POST['pass']) < 6) { ... } strlen Link to comment https://forums.phpfreaks.com/topic/182965-setting-minimum-for-input/#findComment-965722 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.