![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Prevent special characters when registering an account
I only want to allow the following characters for nicknames when someone is registering an account at register.php:
a ... z A ... Z 0 ... 9 underscore "_" How can I achieve this? No members have liked this post.
|
|
#2
|
||||
|
||||
|
Use REGEX ^[a-zA-Z0-9äöüÄÖÜ]*$ read about it here http://www.regular-expressions.info/unicode.html
__________________
Kind regards, Simon Microsoft Office Help My Mods: Prevent Number Only Registrations, Ban Spiders by User Agent, WhoIsIp Info from any post, Insert Objects/ads anywhere using php, Floating Notice Box in Forumhome, Ban IP's Easily No members have liked this post.
|
|
#3
|
|||
|
|||
|
Could you please explain what the bold snippet means? I guess that it will allow stuff like á à ó ò ú ù Á À Ó Ò Ú Ù? If so, why don't add vowels "e" "E" and "i" "I" to your regex?
Also I'd like to allow white spaces " " in nicknames (yes, the character you make when you press the spacebar button in your keyboard). No members have liked this post.
Last edited by chefy : 09 Aug 2012 at 01:49. |
|
#4
|
||||
|
||||
|
Did you read the link? the fact that a-z are allowed means every character between a AND z including a AND z are allowed.
The bold snippet is for foriegn characters.
__________________
Kind regards, Simon Microsoft Office Help My Mods: Prevent Number Only Registrations, Ban Spiders by User Agent, WhoIsIp Info from any post, Insert Objects/ads anywhere using php, Floating Notice Box in Forumhome, Ban IP's Easily No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 13:57.



