i have a sign up forum that i dont want the users to have spaces in their user name.
it will go to an error page if a field is blank.can i add something so it will do the same if the user name has a space?
PHP Code:
if ($_POST['do'] == 'setup')
{
if (empty($_POST['name'])
{
print_error_message($lang['error']);
}
|