Re examples of what wording I feel is "positive"...
Code:
$illegal = implode( ', ', preg_replace('/[a-zA-Z0-9]/', '', $username) );
if ($illegal) {
$errors['username'] = 'Please provide a username without the following characters: ' . $illegal . '. Thank you.';
}
Code:
$illegal = implode( ', ', preg_replace('/[a-zA-Z0-9]/', '', $username) );
if ($illegal) {
$errors['username'] = 'We\'re sorry, but characters like ' . $illegal . ' are not allowed in username.';
}
Code:
$illegal = implode( ', ', preg_replace('/[a-zA-Z0-9]/', '', $username) );
if ($illegal) {
$errors['username'] = 'Characters like ' . $illegal . ' make for a hard to remember username. Thank you for not using them.[/B]';
}
Chances are less savvy users wouldn't use fancy chars anyway while savvy users would understand from the specifically short list of illegals in their input from the message above what chars are out. All that from a specific message, without using full tables of permitted chars or complicated guides.
Bookmarks