Re: [PHP] Informing a User of an Illegal Character in a post

2003-01-10 Thread Justin French
Basically, you want to do a regular expression to see what characters are in the username, and make none of them are illegal... I currently have the rules of 5-30 characters lowercase, numbers 0-9 and underscore (_) only I achieve this with: 30) ) { echo "username invalid -- must contain o

[PHP] Informing a User of an Illegal Character in a post

2003-01-09 Thread Vernon
I'm having trouble when a user post a message to a MySQL database where if a user create a user name like 'user&user' as the & symbol is used in URLs. Does anyone have any idea how I can inform user that they have entered and illegal character and are there are illegal characters that I should let