Jump to content


Photo

Question about usernames


  • Please log in to reply
2 replies to this topic

#1 play_

play_
  • Staff Alumni
  • Advanced Member
  • 717 posts

Posted 04 February 2006 - 04:11 AM

Why is it that most sites only allow letters, numbers and underscores in usernames?
what's wrong with using spaces or . or ()...

?
regex.kat.sh --- regex library
u.kat.sh ---- url shortener
tabbit.org ---- tabbed pastebin

#2 play_

play_
  • Staff Alumni
  • Advanced Member
  • 717 posts

Posted 04 February 2006 - 09:06 AM

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.
regex.kat.sh --- regex library
u.kat.sh ---- url shortener
tabbit.org ---- tabbed pastebin

#3 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 14 February 2006 - 01:59 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users