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)