Can someone tell me how too use æ,ø,å in this script if (!eregi("[a-z ]+$", $name)) { My registration not accept æ,ø,å Hope sombody can help me.
Like this if (!eregi("[a-z - ø - æ - å]+$", $name)) {
You virtually said it yourself:
eregi("[a-zøæå]+$")
I just noticed you could instead have
if(strspn($name),'abcdefghijklmnopqrstuvwxyzøæåABCDEFGHIJKLMNOPQRSTUVWXYZØÆÅ')!=strlen($name))
for your test. But I only say that because I can.
Originally posted by Weedpacket You virtually said it yourself: eregi("[a-zøæå]+$") I just noticed you could instead have if(strspn($name),'abcdefghijklmnopqrstuvwxyzøæåABCDEFGHIJKLMNOPQRSTUVWXYZØÆÅ')!=strlen($name)) for your test. But I only say that because I can. [/B]
Originally posted by Weedpacket You virtually said it yourself: eregi("[a-zøæå]+$") I just noticed you could instead have
for your test. But I only say that because I can. [/B]
Thanks Sir