I am trying to do simple php validation on a name field. But what I have now blocks everything except letters and spaces. What if the person has a ' in their name which isn't uncommon. e.g.: O'Brian
if (!preg_match("/^[a-zA-Z ]*$/",$_POST['name'])) { $error .= "Only letters and white space allowed"; }