play_ Posted February 4, 2006 Share Posted February 4, 2006 Why is it that most sites only allow letters, numbers and underscores in usernames?what's wrong with using spaces or . or ()...? Quote Link to comment Share on other sites More sharing options...
play_ Posted February 4, 2006 Author Share Posted February 4, 2006 Btw, i orginally posted this in the phpnewbie forum because i thought it had something to do with how .'s and spaces and other characters would affect the database. Quote Link to comment Share on other sites More sharing options...
craygo Posted February 14, 2006 Share Posted February 14, 2006 When you start using spaces and sybols, they tend to interfer with scripts and other programs. Take for instance. if you have a username john's, if you try to reference that name in php with something like this $username = 'john's'; you will get an error because of the single quote in the username. you would have to add $username = 'john\'s'; to get it to work. Now imagine if you had a script that put names into arrays, you would be in a world of hurt trying to figure out why things are not working correct.Hope that explains it. It is not really a rule, more like a guideline to make life easier.Ray 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.