Jump to content

Registration


MikeFairbrother

Recommended Posts

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.