I have a form field in which a user types his or her name. Then it shall be stored in a database table. But first I want it to be checked for forbidden charachters.
This is how it looks now:
eregi("$[a-z]+",$string);
It works fine in a way. But it won't accept different characters, like:
å, ä, ö, é, etc.
How can I do this?