View Single Post
Old 23.12.2006, 23:58   #9
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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)
Phantom2005 is offline