MikeFairbrother Posted April 30, 2006 Share Posted April 30, 2006 Hi Guys,I was wondering if anyone can help me.I have a perfectly working registration script, however I want to modify it slightly to 1. Remove spaces in usernames.2. Block characters like éá3. Block a set list of usernames..Basically, the space issue because some people are registering Something Something...and it causes problems with different parts of the system....The list of usernames, if they have entered a username in the list I set, then it will say it's been filtered and not allow them to register it.Note: I could enter "Mike" and it would block all cases like MiKe, mIKE, mIkE and MIKE etc...I did originally use:[code] $usernames = array('Mike', 'Dave', 'Admin', 'Manager', 'Owner');if (!in_array(@eregi($_REQUEST['username']), $usernames)) {[/code]But that was hashed out as it wouldent work...[A friend of mine provided me with this, but was busy at the time and didn't want to bother him with problems]$_REQUEST['username']That's the request used...I thank everyone for their help!Muchos Grasias 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.