Posted by Anze on 03/19/07 13:14
You can add croatian letter to the list of allowed chars:
$result = ereg ("^[A-Za-z0-9??????????]+$", $input);
Greetings from slovenia! ;)
An?e
Zvonko Bi¹kup wrote:
> Hi!
>
> I need to validate a text field in a form (you can enter only text and no
> spaces).
> But I have a iso-8859-2 character set and Croatian letters don't pass
> validation.
> Here is a piece of code:
>
> $result = ereg ("^[A-Za-z0-9]+$", $input);
>
> Any help appreciated.
> Zvonko
>
> Bok!
[Back to original message]
|