Hi
I want to prevent my users signing up to my site with a username that includes a space in it e.g 'name surname' should not be allowed only 'namesurname' or 'name_surname'.
How could I validate that an entered username does not include any spaces and return an error if it is unvalid?
thanks in advance
checking for a space in a string
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK