Jump to content

Archived

This topic is now archived and is closed to further replies.

MikeFairbrother

Registration

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

Share this post


Link to post
Share on other sites

×

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.