Its the first time I've used these forums so.... hello everyone.
I've run into a niggly little problem. I've set up a pattern to check a user's first and last name in a submitted HTML form.
Obviously I don't want any numbers or symbols in a first or last name. So the code I've used is as follows:
$namecheck = "([a-z]+)([a-z])";
Now it DOES check to make sure that the string a user enters begins with a letter but after the initial letter its not limiting the characters they can use. Any ideas why? Its driving me mad.
Many thanks,
John