Spaceing on Signup

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Spaceing on Signup

Post by Smackie »

How do i let my users signup so they cant have spaces in there name but i do want them to have "-" in there name i dont mind if they have - in there name ...

And when they submit the signup it sends them a email having there password and there username..... And i would like for the signup page to require the user signing up to fill in username password and email address....
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

regular expressions can do this. str_replace() can as well, depending on how smart you want this to be.
Post Reply