Announcement

Collapse
No announcement yet.

no spaces in username?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • no spaces in username?

    Hi,

    What is the best way to replace spaces users might put in their username when registering on my site? eregi_replace?

    In other words, usernames can have no spaces in them.

    Thanks,

    Tim
    Five Star Review Script - Add reviews to your website!
    Mixed Martial Arts - Houston MMA Training
    Women's Self-Defense - Courses and DVDs available

  • #2
    str_replace would be the best way to get rid of them...
    I would recommend replacing them with an underscore (_) character though.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X