illegalife Posted November 20, 2008 Share Posted November 20, 2008 How do i limit the characters the username can have to 9 ? i want people to not be able to register with a name longer then 9 and then cant change their name in the game to anything longer then 9. can someone help me? Quote Link to comment Share on other sites More sharing options...
POG1 Posted November 20, 2008 Share Posted November 20, 2008 Re: Limiting Characters in username -register,game strlen() or mb_strlen().. http://uk3.php.net/manual/en/function.strlen.php http://uk3.php.net/manual/en/function.mb-strlen.php Quote Link to comment Share on other sites More sharing options...
illegalife Posted November 20, 2008 Author Share Posted November 20, 2008 Re: Limiting Characters in username -register,game thanks but it didnt really help me i didnt understand it :( Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted November 21, 2008 Share Posted November 21, 2008 Re: Limiting Characters in username -register,game I thought it did.................anyway....to make it easier on you since it seems you WANT the code, and NOT to learn to use it... if(strlen($_POST['newname']) > 15) { die("LEARN TO CODE! THOSE SITES TO EXPLAIN IT..WHERE DO YOU THINK WE LEARNED IT?"); } Quote Link to comment Share on other sites More sharing options...
POG1 Posted November 21, 2008 Share Posted November 21, 2008 Re: Limiting Characters in username -register,game die("LEARN TO CODE! THOSE SITES TO EXPLAIN IT..WHERE DO YOU THINK WE LEARNED IT?"); Very well said, the explanations and demonstrations on the links i showed are very useful. 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.