24.12.2006, 00:05
|
#10
|
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
Quote:
Originally Posted by Phantom2005
PHP Code:
function isAlphaNumeric($str)
{
return !ereg("[^A-Za-z0-9]", $str);
}
That's my fav. It will remove all not-alphanumeric characters.
just use it like this:
PHP Code:
$account = isAlphaNumeric($account);
$password = isAlphaNumeric($password);
$password = isAlphaNumeric($password2);
etc.
And basically you can just add "@" and "." for email addresses
I'm pretty good with PHP. I'll re-do L2CP and post it soon(if someone else doesn't do it before me)
|
I like this guy
|
|
|