I have a name field in which the first name is required but I also want to have it so that they can ass there last name (which would be optional) but I'm not sure how to group this properly so that when iI do have my last name there it will submit the form.
(!eregi("[a-z-]+[[:space:]]?([a-z-]?)$", $name))
Thanks