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 Quote Link to comment Share on other sites More sharing options...
Alex Posted November 25, 2009 Share Posted November 25, 2009 if(strlen($_POST['pass']) < 6) { ... } strlen Quote Link to comment 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.