harmor19
02-27-2006, 09:38 PM
I took this preg_match from this one site
if(preg_match("/[^a-zA-Z0-9\.\-\?\?\?\?\?\?\?\ ]+$/s",$_POST['susername']))
{
eval(standard_error(fetch_error('illegal_character ')));
}
If I just type "@" in the field it recognizes it but if I were to type "s@s" it doesn't recognize it.
if(preg_match("/[^a-zA-Z0-9\.\-\?\?\?\?\?\?\?\ ]+$/s",$_POST['susername']))
{
eval(standard_error(fetch_error('illegal_character ')));
}
If I just type "@" in the field it recognizes it but if I were to type "s@s" it doesn't recognize it.