Validation data - question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

Does anyone know how to write validation for data witch contains
letters such as šđčćž (those are Serbian letters)?
Here is part of my code where it does validation:

$admins_validation = array('name' 	 =>
'/^[[:alnum:][:punct:][:space:]]{1,50}$/',
				        'surname'   => '/^[[:alnum:][:punct:][:space:]]{1,50}$/',
					'email'	 =>
'/^[A-Za-z0-9]+((\.|-|_)[A-Za-z0-9]+)*@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/',
				                    ......
                                       );

So, for example if someone enters name Dušan it won't except  it.



-- 
made by Dusan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux