I would like to accept only small and capital letters from the user.
I tried the below code, it echoes the invalid character message but doesn\'t work. I mean it doe
if(!isset($_POST['fname']) || !ctype_alpha($_POST['fname'])){ // can i haz alpha letters only? }
(reference)