Registering with Symbols like "-"?

Status
Not open for further replies.

Heaplink

Developer & Designer
Nov 9, 2011
510
173
Change your name in database?
That doesn't really answer his question.

You will have to look into the validation code where it checks for username when registering. Here you would use Regular Expression (since it's the best) to choose which symbols can be used. This is an example of an regular expression you can use (similar to what Sulake use)
Code:
preg_match('/([a-zA-Z0-9-.:!?])+/', $username)

The $username is the username to check this patteren (if it meets the criteria) it will return true if it is valid username otherwise false.
 
Status
Not open for further replies.

Users who are viewing this thread

Top