Quote:
Originally Posted by altsounds
How can I use this to allow a-z A-z 0-9 and spaces?? In other words what would I need to do to get this existing hack to work but still allow spaces in usernames??
|
PHP Code:
// Only A-Z, 0-9 [:space:] Characters Only */
if ($vboptions['az09characters'])
{
if (!eregi("^[A-Za-z0-9 ]+$", $_POST['username']))
{
eval(print_standard_error('error_az09charactersonly'));
}
}
Like you asked, how to allow spaces? Just put a space in the regex