I am trying to use preg_match to make it so a user cannot enter numbers on the city entry.
What i have been using for most of my checks is:
if (preg_match('/^[[:alnum:]\ \'\-]{1,60}$/', stripslashes(trim($_POST['city']))) )
-----------
that line works, but it doesn't make it letters only.
I tried:
if (preg_match('/^[[a-zA-Z]\ \'\-]{1,60}$/', stripslashes(trim($_POST['city']))) )
That doesn't work...
hoping it is something small i am missing---
thanks for your help!!
-Ryan


