dfowler Posted January 31, 2008 Share Posted January 31, 2008 Hey guys, I have recently created my first members section for a web site. How do I set it up so that a user's username can't contain any space, or special characters, and be a minimum of 5 letters? I'm sure this is something not too difficult, but I've never had to do it and I'm not sure how to do this. Thanks for any help! Link to comment https://forums.phpfreaks.com/topic/88770-solved-user-name/ Share on other sites More sharing options...
max_w1 Posted January 31, 2008 Share Posted January 31, 2008 i suggest you use live form validator. http://www.livevalidation.com/ Link to comment https://forums.phpfreaks.com/topic/88770-solved-user-name/#findComment-454689 Share on other sites More sharing options...
dfowler Posted January 31, 2008 Author Share Posted January 31, 2008 I ended up using !ctype_alnum($user1) to get rid of the special characters. Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/88770-solved-user-name/#findComment-454698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.