Page 1 of 1

do not include special characters

Posted: Fri Jul 02, 2004 12:26 am
by kevin7
how can i exclude some special characters...
for example... *%^&*(){}[]|?\/><"':;

i use it to validate username for a login...

tq..

Posted: Fri Jul 02, 2004 12:30 am
by feyd
I use [php_man]preg_match[/php_man], you might combo that with [php_man]preg_quote[/php_man]