So I have read around and I have my validation conditional as
if(preg_match('/[^a-z0-9]/i', $userName)
{
$errors = 1;
$error .= "* Your username can only contain letters and numbers *";
}
What would I add to the preg_match to include underscores with that?
This is probably not right, but that is why I am posting.
preg_match('\[^a-z0-9]\_\/i', $userName)
Thanks.