Jump to content



  • Please log in to reply
No replies to this topic

#1 MikeFairbrother

  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 30 April 2006 - 06:02 PM

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:
$usernames = array('Mike', 'Dave', 'Admin', 'Manager', 'Owner');
if (!in_array(@eregi($_REQUEST['username']), $usernames)) {

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]


That's the request used...

I thank everyone for their help!

Muchos Grasias

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users