I need to put a filter that will detect if a user submits a name and not a URL in place.
I guess I could check if there are slashes and/or @ in the $_POST['name'] but is there a better way to do it?
I wanted to do something like:
if (ctype_alpha($name)) {
ok...
} else {
bad name ...
}
but it'll catch names with apostrophes, like O'Brien...
Any suggestions?